Alpha-numeric file sorting


This page should only be used if the script asks you to pass the manual migration code.20250127.WEB.FilesTreeServices

In 4.9, Ametys supports alpha-numeric sorting of file trees (resource explorer, attachments). In other words, sorting is based on alphabetical sorting, but takes numbers into account (file-1.doc > file-2.doc > file-10.doc).

In the Directory contents and Attachments services, folders/files are sorted according to this alphanumeric sorting.

In service rendering, to respect this sorting, the sorting is done in XSL via the instruction <xsl:sort select="@name"/> must be deleted.

Indeed <xsl:sort select="@name"/> will sort alphabetically but not alpha-numerically

Back to top