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
I have many png files generated with a for loop ({1..3000..100}) (1,101,201,301,401,501)
But when I press on "Filename" it doesnt sort right.
It sorts (1,1001,101,1101,1201,1301...2001,201,2101)
The text was updated successfully, but these errors were encountered:
Right, it sorts names using ngx_strcmp which sorts in lexographic order. It's not surprising; many things sort that way, including the built-in nginx module autoindex.
You're asking for it to sort in natural order instead. I would prefer that too, but maybe some people won't, so maybe it should be a configurable option. I don't think nginx already has a natural order sort function that ngx-fancyindex could use. Perhaps it would be beneficial to suggest the addition of such a function to the developers of nginx and to make it possible for the built-in autoindex module to use it via a configuration option. Then ngx-fancyindex will be able to use that new function too.
I have many png files generated with a for loop ({1..3000..100}) (1,101,201,301,401,501)
But when I press on "Filename" it doesnt sort right.
It sorts (1,1001,101,1101,1201,1301...2001,201,2101)
The text was updated successfully, but these errors were encountered: