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.