To quote the manual for [man]readdir/man:
The filenames are returned in the order in which they are stored by the filesystem.
So yes, it's filesystem-dependent.
Now, if you want to do some sorting, such as alphabetical order, you could try something like [man]ksort/man.