On 10/25/2012 02:30 AM, H. S. Teoh wrote:
This may not be possible if the OS doesn't keep the entries in sorted order (and from what I know, most OS's don't; it's only sorted upon display). *Somebody* will have to do the sorting, whether it's the OS, or the library or user code. The performance penalty will still be incurred regardless.
... and interestingly enough the sort order seems to be different depending on the choice of compiler.