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.

@MandeepRawat If you dont want to use sort feature in DT, you can create custom function

ClipboardPage targetPage = tools.findPage(pageName);
ClipboardProperty cbProperty = targetPage.getProperty(pageList);
ClipboardPage appendPage = tools.findPage(pageToAppend);
for( int index=lastindex; index = 0; index-- )
{
cbProperty.add(index,appendPage);
}

this should work.