Client: Sort filament/vendor dropdowns

This commit is contained in:
Donkie
2023-08-13 12:11:15 +02:00
parent 4f8e0284bb
commit d03a9510a5
4 changed files with 12 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ export const SpoolCreate: React.FC<IResourceComponentsProps & CreateOrCloneProps
value: item.id,
};
});
filamentOptions?.sort((a, b) => a.label.localeCompare(b.label, undefined, { sensitivity: "base" }));
return (
<Create