Thomas Martitz schrieb:
So guys,
I'd like to start a new attempt at getting a consensus.
The latest patch I posted applies the sorting as a modifier. I.e. you
don't choose natsort over alphabetical (or vice-versa) sort, but
choose on natsort or ascii sort in a seperate menu, and always when
alphabetic filename sorting is applied, it will use the one that's
been chosen.
The menu is as follows (a seperate menu in General Settings -> File
view):
Sort numbers:
"1, 2, 03, 10"
"03, 1, 10, 2"
If you have ideas or objections, please reply. I really want to get
this in soon!
-------
Best regards
I uploaded another version, which has the setting a bit different.
The settings now a on/off setting, the name is "Recognize numbers while
sorting".
This IMO perfectly fits, since this is exactly what natsort does. It
recognises numbers in strings while sorting, as opposed to strcmp, which
only recognizes bytes (->digits), and treats them in a special way, but
does not sort different from strcmp for strings without numbers.
This doesn't mean the example version is completely abandoned. Either
version could be picked, if agreed upon.