Skip to content

Commit

Permalink
Set pagination order to be ascending by id (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer authored Aug 29, 2023
1 parent d08d745 commit 0a6d58e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def collection_variable

def apply_pagination
collection = instance_variable_get collection_variable
@pagy, collection = pagy_cursor collection, after: params[:after]
@pagy, collection = pagy_cursor collection, after: params[:after], order: {id: :asc}
instance_variable_set collection_variable, collection
end

Expand Down

0 comments on commit 0a6d58e

Please sign in to comment.