diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:40:22 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:40:45 -0800 |
commit | d2110d266cb864b03bc258d4f2d1a48df26d2c25 (patch) | |
tree | 2fe6ea56e4624f907c3e233edc964862e3f73b66 | |
parent | e9d995ba679a226175869ea457871e6f0841585d (diff) | |
download | gitlab-ce-d2110d266cb864b03bc258d4f2d1a48df26d2c25.tar.gz |
Respect star ordering on explore page
-rw-r--r-- | app/controllers/explore/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb index d75fd8e72fa..0e5891ae807 100644 --- a/app/controllers/explore/projects_controller.rb +++ b/app/controllers/explore/projects_controller.rb @@ -18,7 +18,7 @@ class Explore::ProjectsController < ApplicationController def starred @starred_projects = ProjectsFinder.new.execute(current_user) - @starred_projects = @starred_projects.order('star_count DESC') + @starred_projects = @starred_projects.reorder('star_count DESC') @starred_projects = @starred_projects.page(params[:page]).per(10) end end |