File sequences support
Allan Sandfeld Jensen
kde at carewolf.com
Sat Apr 9 00:08:22 BST 2005
On Friday 08 April 2005 20:47, David Faure wrote:
> On Friday 08 April 2005 20:46, Jaqui Greenlees wrote:
> > Aaron Seigo wrote:
> > > On April 8, 2005 18:22, Ismail Donmez wrote:
> > >>Windows has support for doing it the human way ( 10 > 2 ) style. But
> > >> don't know the implementation details.
> > >
> > > google for "natsort" (and "natsort -php" to get all the php docu out of
> > > the way to see implementations in more useful (to KDE) languages such
> > > a C, Java, C++ and Python) ... it's rather trivial, but it means more
> > > sorting overhead when listing directories.
> >
> > maybe this should be included for default sort?
> > to actually sort files with numerical sections in the name into
> > numerical order by default would enhanse user experience.
>
> The "by default" is the arguable part here. Making directory listing slower
> wouldn't *exactly* enhance user experience.
I don't think it has to be noticably slower even for large directories. Much
faster than sorting according to locale anyway. It just a matter of
separating the string in alphabetic, numeric parts and other parts, and
sorting those individually.
`Allan
More information about the kfm-devel
mailing list