Skip to content

Commit a551cba

Browse files
committed
Order tasks on collection page by rank
Also order the collections by title Fixes #1311
1 parent 196a240 commit a551cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/collections_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def index
1515
Collection.public_access
1616
else
1717
Collection.member(current_user)
18-
end.includes(:users, tasks: %i[user groups]).order(id: :asc).paginate(page: params[:page], per_page: per_page_param)
18+
end.includes(:users, collection_tasks: [task: %i[user groups]]).order(title: :asc).paginate(page: params[:page], per_page: per_page_param)
1919

2020
authorize @collections
2121
end

0 commit comments

Comments
 (0)