Permalink
Browse files

show latest users first

  • Loading branch information...
1 parent 1826c63 commit 3eaa565eddc069dbc2455cb407780a2ec598ae84 @phoet committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/user.rb
View
2 app/models/user.rb
@@ -58,7 +58,7 @@ def handle_attributes(hash)
class << self
def peers
- joins(:participants => :event).where("events.label" => Whitelabel[:label_id]).uniq
+ joins(:participants => :event).where("events.label" => Whitelabel[:label_id]).order("created_at DESC").uniq
end
def main

0 comments on commit 3eaa565

Please sign in to comment.