lib/visage-app/profile.rb in visage-app-0.9.4 vs lib/visage-app/profile.rb in visage-app-0.9.5

- old
+ new

@@ -22,10 +22,10 @@ end def self.all(opts={}) sort = opts[:sort] profiles = self.load - profiles = sort == "name" ? profiles.sort.map {|i| i.last } : profiles.values + profiles = sort == "name" ? profiles.sort_by {|k,v| v[:profile_name]}.map {|i| i.last } : profiles.values profiles.map { |prof| self.new(prof) } end def initialize(opts={}) @options = opts