Is there a fixed/default sort order in which Dir.entries returns results? I know by experience that the first two entries are \".\" and \"..\
Dir.entries
\".\"
\"..\
I think there is no default sort order, but you can use Dir.entries('some_path_to_dir').sort to sort them in ASC way.
Dir.entries('some_path_to_dir').sort