Commit 86d5e206 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Respect star ordering on explore page

parent 7ad5fd6c
...@@ -18,7 +18,7 @@ class Explore::ProjectsController < ApplicationController ...@@ -18,7 +18,7 @@ class Explore::ProjectsController < ApplicationController
def starred def starred
@starred_projects = ProjectsFinder.new.execute(current_user) @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) @starred_projects = @starred_projects.page(params[:page]).per(10)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment