std.file.dirEntries unsorted
Marco Leise
Marco.Leise at gmx.de
Wed Dec 11 02:31:56 PST 2013
Am Wed, 11 Dec 2013 08:00:27 +0100
schrieb "Jesse Phillips" <Jesse.K.Phillips+D at gmail.com>:
> It should only be documented. In my experience processing files
> don't need a particular order and sorting may not be needed by
> name.
>
> Returning a sorted directory is difficult to define, should
> directories come first or be mixed with the files. Is uppercase
> grouped together? Does A come before a. Should the extension be
> included or postponed for later.
>
> I think sorting should be explicit.
Does 2.jpg come after 10.jpg ? What's the order of
Arabic-Indic "one" ۱ compared to "Latin one" 1 ? And so on and
so forth.
--
Marco
More information about the Digitalmars-d-learn
mailing list