Set a sort order for the samples.json file's content

This commit is contained in:
Paul Chaignon
2014-06-24 10:50:03 +02:00
parent e91d225e7d
commit f4e254202b

View File

@@ -28,7 +28,7 @@ module Linguist
# #
# Returns nothing. # Returns nothing.
def self.each(&block) def self.each(&block)
Dir.entries(ROOT).each do |category| Dir.entries(ROOT).sort!.each do |category|
next if category == '.' || category == '..' next if category == '.' || category == '..'
# Skip text and binary for now # Skip text and binary for now