Switched what around? readdir will return the files in the actual order they are in the directory. AFAIK, most OS's don't give you any control over the actual order (though filesystems based on btrees (NTFS?) will have an automatic order.)
Comment on Re: Re: Re: reading files and directories