Samer_J's avatar

Reverse order of pagination?

Using Laravel's pagination feature, is there any way I can reverse the order of the pagination links?

Currently it's ordered like this:

[<][1][2][3][4][>]

And I want it to be ordered like this:

[<][4][3][2][1][>]

The new content would need to be on the last page (page 4 in my case, instead of page 1).

0 likes
2 replies
topvillas's avatar

Not out of the box. You'll need to extend the pagination and overwrite some methods. Or use jQuery to reorder the links.

JackJones's avatar

Or format as flex and reverse the order with CSS

1 like

Please or to participate in this conversation.