Respect star ordering on explore page
This commit is contained in:
parent
7ad5fd6ce7
commit
86d5e20664
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue