diff --git a/src/ClientApp/src/components/Detail.jsx b/src/ClientApp/src/components/Detail.jsx index 6aa070e..959845f 100644 --- a/src/ClientApp/src/components/Detail.jsx +++ b/src/ClientApp/src/components/Detail.jsx @@ -180,15 +180,20 @@ export function Detail() { {t("catalogue-files")}:{" "} {model.catalogueFiles && - model.catalogueFiles.map((f) => ( - - - - {f} - - - - ))} + model.catalogueFiles + .sort((a, b) => { + const result = (a.match(/\//g) || []).length - (b.match(/\//g) || []).length; + return result === 0 ? a.localeCompare(b, undefined, { sensitivity: "base" }) : result; + }) + .map((f) => ( + + + + {f} + + + + ))} )} {model.technicalContact && (