From 4f6b5001b4868661b5a84e441e5e35a4858760c3 Mon Sep 17 00:00:00 2001 From: Nick Sellen Date: Thu, 31 Jan 2013 11:44:38 +0000 Subject: [PATCH] ensure order is preserved --- _plugins/manual.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/manual.rb b/_plugins/manual.rb index 4b43cc63..2c5c4b82 100644 --- a/_plugins/manual.rb +++ b/_plugins/manual.rb @@ -22,7 +22,7 @@ module Manual def self.traverse(path, directory_sort = false, paths = [], key_paths = [], &block) - entries = Dir.glob(File.join(path,'*')) + entries = Dir.glob(File.join(path,'*')).sort entries.sort_by! { |e| File.directory?(e) ? 1 : 0 } if directory_sort