diff --git a/src/components/TaggablePopover.tsx b/src/components/TaggablePopover.tsx index 4edb80c..c6dbe6e 100644 --- a/src/components/TaggablePopover.tsx +++ b/src/components/TaggablePopover.tsx @@ -78,27 +78,34 @@ export const TaggablePopover = ({ tags, selectedTags, onSelect }) => ( - {tags.map((option) => { - const isSelected = selectedTags.includes(option.value); - return ( - onSelect({ tag })} - > -
+ selectedTags.includes(b.value) - + selectedTags.includes(a.value) || + a.label.localeCompare(b.label) + ) + .map((option) => { + const isSelected = selectedTags.includes(option.value); + return ( + onSelect({ tag })} > - -
- {option.label} -
- ); - })} +
+ +
+ {option.label} + + ); + })}