Directory reads not in alphabetical order. It is rather equivalent to 'unsorted' form of the list, with folders scattered in midst of files.
Yes, that is the only answer that can explain the results you were getting, so I kind of expected it, just didn't know.