Ruby docs don't mention this.
Does Dir.glob("*")
guarantee the order of the files it returns, or do I need to sort them myself to be certain?
No. Not if you're moving across OSes: http://rubyforge.org/tracker/index.php?func=detail&aid=12795&group_id=426&atid=1698
If the docs don't say it, then there is no guarantee, and you need to sort it for yourself. Even if it works in your current ruby, it may not in your next.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With