Custom Sort - Only processing 74 files at a time? #638
-
Hello, I'm using version 3.7.9 of DirectoryLister with a custom Sort Function. I've noticed that DirectoryLister seems to be only processing chunks of 74 files at a time. This results in files being listed in the requested order up to 74 files, and then it starts over again with the remaining files. Here's the custom function I'm using:
Not sure if this is a limitation of DirectoryLister or what I'm doing wrong. I'm using Apache 2.4.41 with PHP 7.4.4 on a windows server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Looks like it's not a matter of only processing 74 files at a time. It's processing all the files correctly, it's just that strnatcmp is case sensitive, so all the files and folders with capital letters appear first before files and folders with lower case letters. |
Beta Was this translation helpful? Give feedback.
Looks like it's not a matter of only processing 74 files at a time. It's processing all the files correctly, it's just that strnatcmp is case sensitive, so all the files and folders with capital letters appear first before files and folders with lower case letters.
Replacing strnatcmp with strnatcasecmp and the sort is now what I am expecting.