From 3a4d1e07b77bfab1282570e193dbbe1eab9766da Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Wed, 27 Jul 2011 03:01:28 -0400 Subject: [PATCH] reverted sorting back to one liner --- Gemfile.lock | 2 +- lib/compass/sass_extensions/sprites/layout_methods.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 7b6092b5..aaf6f1eb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - compass (0.12.0.alpha.0.0984b48) + compass (0.12.0.alpha.0.8c48248) chunky_png (~> 1.2) fssm (>= 0.2.7) sass (~> 3.1) diff --git a/lib/compass/sass_extensions/sprites/layout_methods.rb b/lib/compass/sass_extensions/sprites/layout_methods.rb index eddfd088..56a219f6 100644 --- a/lib/compass/sass_extensions/sprites/layout_methods.rb +++ b/lib/compass/sass_extensions/sprites/layout_methods.rb @@ -16,7 +16,7 @@ module Compass calculate_horizontal_positions calculate_width else - @images.sort! {|a,b| b.size <=> b.size} #put small images first + @images.sort! {|a,b| b.size <=> a.size} calculate_width calulate_vertical_postions calculate_height