diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/util/backup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/backup.rb b/lib/chef/util/backup.rb index 547d4095a3..5728dcaedd 100644 --- a/lib/chef/util/backup.rb +++ b/lib/chef/util/backup.rb @@ -87,7 +87,7 @@ class Chef end def sorted_backup_files - unsorted_backup_files.sort { |a, b| b <=> a } + unsorted_backup_files.sort.reverse # faster than sort { |a, b| b <=> a } end end end |