Skip to content

Commit

Permalink
Merge pull request #822 from dennis531/filter-sorted
Browse files Browse the repository at this point in the history
Sort filters alphabetically
  • Loading branch information
lkiesow committed Jul 9, 2024
2 parents 9c614f4 + 1b2e214 commit ca35d0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/shared/TableFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ const TableFilters = ({
.filter(
(filter) => filter.name !== "presentersBibliographic"
)
.sort((a, b) => t(a.label).localeCompare(t(b.label))) // Sort alphabetically
.map((filter, key) => (
<option key={key} value={filter.name}>
{t(filter.label).substr(0, 40)}
Expand Down

0 comments on commit ca35d0c

Please sign in to comment.