sort entries alphabetically
[booh] / bin / booh-classifier
index 6c9174f038fa2fef6dcf41c2236e01824c1e331a..ca9ce5d54e9ccd94b2a9501373d67fc0fe4179ee 100644 (file)
@@ -956,7 +956,7 @@ def open_dir(path)
             msg 1, _("Ignoring directory %s, begins with a dot (indicating a hidden directory)") % dir
             next
         end
-        Dir.entries(dir).each { |file|
+        Dir.entries(dir).sort.each { |file|
             type = entry2type(file)
             if type
                 $allentries << Entry.new(File.join(dir, file), type)