goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

natural sort and case-sensitive #55

Open kvorobyov opened 8 years ago

kvorobyov commented 8 years ago

It looks like it's impossible to make case insensitive sort with natural sort turned off.

[[!FileDownload? &getDir=files/old &directLink=1 &countDownloads=0 &sortByCaseSensitive=0 &sortOrderNatural=0 ]]

it produces the following:

Cfile_09.exe Lfile_11.exe Mfile-191.exe iFile.exe

but I hope it would be

Cfile_09.exe iFile.exe Lfile_11.exe Mfile-191.exe

I guess SORT_STRING | SORT_FLAG_CASE options must be added to asort / arsort function calls by default.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38983020-natural-sort-and-case-sensitive?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github).