-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directories listing returns results in a nontraditional Alphabetical order - ALL CAPS precede mixed case or lower case #121
Comments
Right, it sorts names using To perform a case-insensitive sort like you suggest, it would have to use I don't see any wrappers around |
Locale-aware sorting has been mentioned previously in #60. |
One potential can of worms of using locale-aware collation is that we don't know which locale should be used:
Using plain ASCII sorting (what |
I could see a use case where someone runs a server serving files whose names are primarily in one language and wanting the sort order to reflect that language. Think about an internal server at a small company serving files only for the employees of that company. Allowing the web site visitor to influence the locale of the sort order is probably beyond the scope of what a web server module could be expected to do. Allowing the returned content to vary based on a header is bad for caching too. Allowing the server administrator to select case-insensitive sorting (#78, #124) is great, but again it's probably out of scope to allow the web site visitor to select that, and to remain consistent with what Apache and nginx server administrators expect I would recommend keeping case-sensitive as the default. |
Returning the results from directory listing.
I'm guessing the ascii values are being checked for that so while a listing in more traditional alphabetical ordering would look like
the index returns
apparently prioritizing uppercase in resulting listings.
if this is intended, please turn this into a feature request to allow returned results with effectively a .lower() scenario and... then how other language's special characters are handled in that ordering,
I've not done extensive testing, but it appears non native "English" characters are displayed/ordered after z in most cases.
ie..
a,b,c...
z
Then all other characters or diacritical markings (umlaut, cedilla, accute accent, crucflex, tilde, grave, etc)
à, è, ì, ò, ù - À, È, Ì, Ò, Ù
á, é, í, ó, ú, ý - Á, É, Í, Ó, Ú, Ý
ą,ł, ż, ß, ä, ö, ü, ç, ã, õ,
versus the more expected
The text was updated successfully, but these errors were encountered: