# File lib/visage-app/profile.rb, line 34 def self.all(opts={}) sort = opts[:sort] profiles = self.load profiles = ((sort == "name") or not sort) ? profiles.sort_by {|k,v| v[:profile_name]}.map {|i| i.last } : profiles.values # FIXME - to sort by creation time we need to save creation time on each profile profiles.map { |prof| self.new(prof) } end