Question

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.