std.file.dirEntries unsorted

Timothee Cour thelastmammoth at gmail.com
Tue Dec 10 18:11:07 PST 2013


dirEntries depends on readdir, which has undefined order (eg:
http://stackoverflow.com/questions/8977441/does-readdir-guarantee-an-order,
and I've experienced as well dirEntries in non-alphabetical order)

shouldn't we make dirEntries return in alphabetical order by default, with
an option to return in unspecified native order for efficiency?

at least, it should be specified in doc that order is undefined.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20131210/08514328/attachment.html>


More information about the Digitalmars-d-learn mailing list