From f4e254202b0e21789aa728ffe8173e0ca6b99b03 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Tue, 24 Jun 2014 10:50:03 +0200 Subject: [PATCH] Set a sort order for the samples.json file's content --- lib/linguist/samples.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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