Sometimes items passed to get_page_items are already ordered. That order needs to be replaced by cursor_column instead of adding cursor_column after the existing order. You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6204 -- Commit Summary -- * Reorder paginated items -- File Changes -- M app/controllers/concerns/pagination_methods.rb (6) M config/routes.rb (2) M test/controllers/diary_entries_controller_test.rb (80) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/6204.patch https://github.com/openstreetmap/openstreetmap-website/pull/6204.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6204 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/6...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev