Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/1edc8915-f810-4eb9-b1bd-9ce9eb7d851e.png?itok=xMPbjjx9)
Bits in Glass
CA
Last activity: 18 Mar 2024 13:58 EDT
How to flip a pagelist?
I want to flip the pages of a pagelist and maintain their sequence number.
exapmple
.Customer(1)
--> .Name = abc
--> .index = 1
.Customer(2)
--> .Name = xyz
--> .index = 2
should be converted to
.Customer(1)
--> .Name = xyz
--> .index = 1
.Customer(2)
--> .Name = abc
--> .index = 2
I understand I do sort and manipulate again, also we can loop starting from length and traverse in reverse order.
but is there any other way I can perform this, as this is taking some tim to refresh on UI. my pagelist will generally contain 1000 elements.