diff --git a/lib/linguist/samples.rb b/lib/linguist/samples.rb index 2bd5212e..9a291b2d 100644 --- a/lib/linguist/samples.rb +++ b/lib/linguist/samples.rb @@ -28,7 +28,7 @@ module Linguist # # Returns nothing. def self.each(&block) - Dir.entries(ROOT).each do |category| + Dir.entries(ROOT).sort!.each do |category| next if category == '.' || category == '..' # Skip text and binary for now