Permalink
Browse files

Fixed sorting of upcoming events.

  • Loading branch information...
1 parent fd18f7f commit 3dd66d08501fa6f8289ae8027fc176aa6c2a2a83 @tylerhunt committed Apr 2, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/venues_controller.rb
@@ -5,7 +5,8 @@ def index
time = Time.zone.now
@talks_by_venue = Talk.all(
- :conditions => { :ends_at => time..(time + 2.hours) }
+ :conditions => { :ends_at => time..(time + 2.hours) },
+ :order => 'starts_at'
).group_by(&:venue)
respond_to do |format|

0 comments on commit 3dd66d0

Please sign in to comment.