Forum

Directory listing sorted oddly

James
27 March 2015, 15:47
Just wanted to mention that the directory listing puts lowercase filenames after all others
For example: if I have 3 folders labeled "Apples", "pears", and "Zebras", they'll be listed alphabetically - EXCEPT - pears will be bumped to the bottom.

How do you modify the XSLT sorting order?
And can you consider changing the default sorting order in the future? Alphabetized-with-lowercase-names-last seems like an odd default setting..

Hiawatha version: 9.12
Operating System: Linux Mint 17.1
Hugo Leisink
27 March 2015, 17:04
XSLT sorting is not the solution. The patch for this is easy though. Replace the strcmp() in src/libfs.c at line 532 with strcasecmp().
James
27 March 2015, 17:39
So there is no way to change this without getting a development environment set up and recompiling the whole program with this patch added?

Maybe that change could be included in the next release?
Hugo Leisink
27 March 2015, 18:34
No, there is not. I applied the patch as described above to the Hiawatha source, so it will be available in the next release.

Remember that there are many users which all have different opinions and preferences. Can't serve them all...
This topic has been closed.