Skip to content

Commit

Permalink
Update packages/synapse-react-client/src/components/widgets/query-fil…
Browse files Browse the repository at this point in the history
…ter/EnumFacetFilter/EnumFacetFilter.tsx

Co-authored-by: Nick Grosenbacher <[email protected]>
  • Loading branch information
jay-hodgson and nickgros committed Sep 24, 2024
1 parent 295b924 commit bca8bad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function _EnumFacetFilter(props: EnumFacetFilterProps) {
const restOfFacetValuesArray = partitions[1]
let sortedValues: RenderedFacetValue[]
if (isNumberColumnType) {
sortedValues = sortBy(restOfFacetValuesArray, fv => new Number(fv.value))
sortedValues = sortBy(restOfFacetValuesArray, fv => Number(fv.value))
} else {
sortedValues = sortBy(restOfFacetValuesArray, fv =>
fv.displayText.toLowerCase(),
Expand Down

0 comments on commit bca8bad

Please sign in to comment.