summaryrefslogtreecommitdiffstats
path: root/lib/facter/util/fact.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/util/fact.rb')
-rw-r--r--lib/facter/util/fact.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/facter/util/fact.rb b/lib/facter/util/fact.rb
index e78ed97..935b3c1 100644
--- a/lib/facter/util/fact.rb
+++ b/lib/facter/util/fact.rb
@@ -41,9 +41,7 @@ class Facter::Util::Fact
# Immediately sort the resolutions, so that we always have
# a sorted list for looking up values.
- # We always want to look them up in the order of number of
- # confines, so the most restricted resolution always wins.
- @resolves.sort! { |a, b| b.length <=> a.length }
+ @resolves.sort! { |a, b| b.weight <=> a.weight }
return resolve
end