mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-02 21:24:34 +01:00
ux: alphabetize extensions (#3416)
This commit is contained in:
@@ -19,9 +19,14 @@ export default function ExtensionList({
|
||||
isStatic,
|
||||
disableConfiguration: _disableConfiguration,
|
||||
}: ExtensionListProps) {
|
||||
// Sort extensions alphabetically by their friendly title
|
||||
const sortedExtensions = [...extensions].sort((a, b) =>
|
||||
getFriendlyTitle(a).localeCompare(getFriendlyTitle(b))
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="grid grid-cols-2 gap-2 mb-2">
|
||||
{extensions.map((extension) => (
|
||||
{sortedExtensions.map((extension) => (
|
||||
<ExtensionItem
|
||||
key={extension.name}
|
||||
extension={extension}
|
||||
|
||||
Reference in New Issue
Block a user