From: nobu@... Date: 2020-01-16T05:22:02+00:00 Subject: [ruby-core:96882] [Ruby master Feature#8709] Dir.glob should return sorted file list Issue #8709 has been updated by nobu (Nobuyoshi Nakada). I'm for adding `NOSORT` option to the second argument. ---------------------------------------- Feature #8709: Dir.glob should return sorted file list https://bugs.ruby-lang.org/issues/8709#change-83894 * Author: tommorris (Tom Morris) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- On OS X, Dir.glob and Dir[] return an ordered list of files. On Ubuntu Linux, they do not and one must manually sort them. Returning a list of files that isn't in order fails the Principle of Least Astonishment. I attach a unit test to demonstrate ideal behaviour. ---Files-------------------------------- globtest.rb (454 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: