Python scandir() ordering \ POSIX readdir ordering
<p>I have a basic question about ordering in <code>scandir</code> function. So far I read man pages for  POSIX <code>readdir</code> and didn't found specific information about ordering guaranties. </p>

<p>But when I iterate over large directory (which cannot be changed, read only) I observe same results over multiple systems (Fedora 24 and Ubuntu 16.04).</p>

<p>What is the reason of this behaviour? Where I can read more about it?</p>

<p>If I need consisted ordering, should I wrote my own wrapper around POSIX <a href="http://man7.org/linux/man-pages/man3/scandir.3.html" rel="nofollow noreferrer">scandir</a> or someone knows existing implementation for python?</p>