Question
1
Replies
174
Views
Levtech
Posted: December 16, 2017
Last activity: December 17, 2017
Closed
how to flip the records using activity methods
Hi
I have a requirement like in the page list i have 5 records 1,2,3,4,5 like this order but i want to flip these records in reverse order like 5,4,3,2,1 anyone please let me know how to achieve this using activities
Thanks in advance
Hello Adi Narayan,
I think you can make you of 'Obj-Sort' method.
Once review more information about this method from the below URL.
https://pdn.pega.com/sites/pdn.pega.com/files/help_v731/procomhelpmain.htm#methods/obj-sort/obj-sort.htm
Here you can specify one or more properties to sort on, and whether the sort sequence is ascending or descending for each sort level.
So if you just want to flip the records then if you have property in the pagelist that holds the index(page no.), then you can use this as basis for sorting.
Thanks!