diff --git a/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx index 1425919d..3bda2b0b 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/ParameterDocuments/index.tsx @@ -40,6 +40,7 @@ export default function ParameterDocuments(props: IProps) { value: document.uid, }; }); + formattedOptions.sort((a, b) => a.label > b.label? 1 : -1); setFormattedOptions(formattedOptions); }, [props.folder.deed?.document_types]); diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index 1bfc9132..9e62b3e3 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -161,6 +161,8 @@ class AskDocumentsClass extends BasePage { }; }); + documentTypesOptions.sort((a, b) => a.label > b.label ? 1 : -1); + return documentTypesOptions; }