Permalink
Browse files

Apply reasonable ordering to Gist list view

  • Loading branch information...
1 parent cf5d3e9 commit 90c2308c29f0a3782c79ecc9429fc2dbbb30903b @rwdaigle committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/gists_controller.rb
@@ -5,7 +5,7 @@ class GistsController < ApplicationController
before_filter :force_user_login
def index
- @gists = current_user.gists.includes(:files)
+ @gists = current_user.gists.order("gh_created_at DESC").includes(:files)
end
def search

0 comments on commit 90c2308

Please sign in to comment.