diff --git a/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx b/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx index a9060eb963a9..21f04c11d447 100644 --- a/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx +++ b/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx @@ -86,7 +86,7 @@ function ReportFieldsListValuesPage({ const listValuesSections = useMemo(() => { const data = listValues - .sort((a, b) => localeCompare(a, b)) + // .sort((a, b) => localeCompare(a, b)) .map((value, index) => ({ value, index, @@ -101,8 +101,8 @@ function ReportFieldsListValuesPage({ labelText={disabledListValues[index] ? translate('workspace.common.disabled') : translate('workspace.common.enabled')} /> ), - })); - + })) + .sort((a, b) => localeCompare(a.value, b.value)); return [{data, isDisabled: false}]; }, [disabledListValues, listValues, policy?.fieldList, reportFieldID, selectedValues, translate]);