From e2185ceb243d1b426e30d555d737cd666985c41f Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 19 Sep 2006 06:08:23 +0000 Subject: Sorting the facts when they are all output git-svn-id: http://reductivelabs.com/svn/facter/trunk@167 1f5c1d6a-bddf-0310-8f58-fc49e503516a --- bin/facter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/facter b/bin/facter index 8cbdeef..5b4e79f 100755 --- a/bin/facter +++ b/bin/facter @@ -113,7 +113,7 @@ else } end -facts.each { |name,value| +facts.sort { |a, b| a[0].to_s <=> b[0].to_s }.each { |name,value| if facts.length == 1 puts value else -- cgit