diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx index b5454cab..9dad13f8 100644 --- a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx +++ b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx @@ -108,12 +108,12 @@ export default function DeedTypesInformations(props: IProps) { setSelectedDocuments(values as IOption[]); }, []); - const formattedOptions: IOption[] = availableDocuments.map((document) => { - return { + const formattedOptions: IOption[] = availableDocuments + .map((document) => ({ label: document.name, value: document.uid, - }; - }); + })) + .sort((a, b) => a.label.localeCompare(b.label)); return (