Skip to content

Commit

Permalink
Sorted plugins by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Carreira committed Jul 17, 2024
1 parent b1fbd3c commit 011b739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PluginSelector/PluginSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export default function PluginSelector({
)}
MenuProps={MenuProps}
>
{plugins.map(({ displayName, name }) => (
{plugins
.sort((a, b) => a.displayName.toLowerCase() > b.displayName.toLowerCase() ? 1 : -1)
.map(({ displayName, name }) => (
<MenuItem key={name} value={name}>
{displayName}
</MenuItem>
Expand Down

0 comments on commit 011b739

Please sign in to comment.