diff --git a/src/Lumi/Components/Select/SelectBackend.purs b/src/Lumi/Components/Select/SelectBackend.purs index 7e7c328..122ff1e 100644 --- a/src/Lumi/Components/Select/SelectBackend.purs +++ b/src/Lumi/Components/Select/SelectBackend.purs @@ -243,7 +243,7 @@ selectBackend = make component map (\external -> let { label, value } = props.toSelectOption external in { label, value, external }) - <<< Array.nubBy + <<< Array.sortBy ((fromMaybe (defaultOptionSort (_.label <<< props.toSelectOption)) props.optionSort) searchTerm)