diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx index 9dad13f8..c79579ff 100644 --- a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx +++ b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx @@ -71,12 +71,14 @@ export default function DeedTypesInformations(props: IProps) { setDeedTypeSelected(deedType); if (!deedType.document_types) return; - const documentsOptions: IOption[] = deedType.document_types?.map((documentType) => { - return { - label: documentType.name, - value: documentType.uid, - }; - }); + const documentsOptions: IOption[] = deedType.document_types + ?.map((documentType) => { + return { + label: documentType.name, + value: documentType.uid, + }; + }) + .sort((a, b) => a.label.localeCompare(b.label)); setSelectedDocuments(documentsOptions); }