Permalink
Browse files

order sessions by time

  • Loading branch information...
1 parent 103da28 commit 9aea151ac375ca4f68c13dbab96060159a277971 @chap chap committed Apr 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/bohconf_sessions_controller.rb
@@ -7,7 +7,8 @@ def index
# show me sessions that have started in the last hour
# or will start in the next 20 minutes
# that havent ended yet
- @sessions = BohconfSession.approved
+ @sessions = BohconfSession.approved.
+ order('starts_at')
redirect_to bohconf_sessions_soon_path if @sessions.empty?

0 comments on commit 9aea151

Please sign in to comment.