feat: sort drop-down entries alphabetically (#75)

This commit is contained in:
Josep M Sobrepere
2025-08-19 18:02:22 +02:00
committed by GitHub
parent c5ae60c5b3
commit 1cbbc921bd
+1 -1
View File
@@ -67,7 +67,7 @@ export const SearchableSelect = <T,>({
},
]),
]
: options
: [...options].sort((a, b) => a.text.localeCompare(b.text))
return (
<Popover open={open} onOpenChange={setOpen}>