From 78ae059f3dd9f2b7796b4d7aa7a18d98a0f1ac5a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 19 Dec 2022 22:51:01 -0800 Subject: [PATCH] Sort available filters options in custom filters (cherry picked from commit 9e694c7b06c6d54fd652792fa1d81cc27ec1f311) --- frontend/src/Components/Filter/Builder/FilterBuilderRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderRow.js b/frontend/src/Components/Filter/Builder/FilterBuilderRow.js index 00e216452..61108b865 100644 --- a/frontend/src/Components/Filter/Builder/FilterBuilderRow.js +++ b/frontend/src/Components/Filter/Builder/FilterBuilderRow.js @@ -214,7 +214,7 @@ class FilterBuilderRow extends Component { key: availablePropFilter.name, value: availablePropFilter.label }; - }); + }).sort((a, b) => a.value.localeCompare(b.value)); const ValueComponent = getRowValueConnector(selectedFilterBuilderProp);