diff --git a/client/src/components/sessions/SessionFolderRaiseBreakdown.tsx b/client/src/components/sessions/SessionFolderRaiseBreakdown.tsx index ccc06fe41..9d0352ab5 100644 --- a/client/src/components/sessions/SessionFolderRaiseBreakdown.tsx +++ b/client/src/components/sessions/SessionFolderRaiseBreakdown.tsx @@ -210,10 +210,10 @@ export default function SessionFolderRaiseBreakdown({ ); } -const SortRaisesNicely = (gptConfig: GamePTConfig, preferredEnum: string) => { - const conf = GetScoreMetricConf(gptConfig, preferredEnum) as ConfEnumScoreMetric; +const SortRaisesNicely = (gptConfig: GamePTConfig, preferredEnum: string) => + NumericSOV((x) => { + const conf = GetScoreMetricConf(gptConfig, x.type) as ConfEnumScoreMetric; - return NumericSOV((x) => { const baseValue = conf.values.indexOf(x.value); // if this is what the user prefers to see, push it to the top @@ -223,7 +223,6 @@ const SortRaisesNicely = (gptConfig: GamePTConfig, preferredEnum: string) => { return baseValue; }, true); -}; function FolderRaiseRender({ folderRaiseInfo,