You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
Steps to Reproduce
file_2ca.tex
file_02d.tex
file_2ea.tex
Expected Behaviour
The file names should be listed in alphabetical order, like
ls
orls -1 | sort
would show them:Observed Behaviour
The file names are listed in "numerical alphabetical order":
This is the order that
ls -1 | sort -n
would use.Context
When files have hex values in their name (e.g., hashes or checksums), this ordering is not reliable because initial 0's in the hex string are ignored.
Technical Info
The numerical file ordering is imposed by this source line in Overleaf:
/frontend/js/features/file-tree/components/file-tree-folder-list.js#L69
It appears that this pull request introduced this change in December 2020.
The problem is reproducible on any browser and appears to be the new intended behavior.
Analysis
There is nothing preventing the user from manually sorting these entries, for example by using this function:
Afterward, the file list appears in the correct order:
It would be nice to give an option to the user, e.g., "Use numerical order in file tree".
The text was updated successfully, but these errors were encountered: