|
Rockbox mail archiveSubject: Re: Natural/Numeric/Intelligent sorting (FS#8314)Re: Natural/Numeric/Intelligent sorting (FS#8314)
From: Thomas Martitz <thomas.martitz_at_fhtw-berlin.de>
Date: Thu, 26 Feb 2009 23:24:20 +0100 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. Received on 2009-02-26 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |