Respect star ordering on explore page

This commit is contained in:
Dmitriy Zaporozhets 2015-02-18 16:40:22 -08:00
parent 7ad5fd6ce7
commit 86d5e20664
1 changed files with 1 additions and 1 deletions

View File

@ -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