Pagelist sorting

I have a senario where I have to sort the pages in the pagelist base on an integer property using activity without using obj-sort, Data Transform sort. Is this possible?

Hi @ReyanD16743067: Would you be able to share with us on why you need to exclude Obj-Sort and Sort method in Data transform? These are the intended options to perform sorting. If the source of the values are from DB, you can perform the sorting during the data retrieval.

Thanks.

@ReyanD16743067 if you want a function to achieve sorting, use @pxSortPagelist(pagelist, property within pagelist, option)

Option-> ascending or descending

@ArulDevan

This is an assignment.

I have to sort page list without using any OOTB rules and function only using activity.

Hi @ReyanD16743067: If you want to sort Just using activity, then you may need to loop through the page list and need to manipulate it. Of if you are allowed to use Java codes, you may refer to the code from function “pxSortPageList” which can be added in activity.

This is more specific need and the request is to violate the OOTB options and best practices. I’m afraid that such customization may result in unoptimized codes and issues. It is always suggested to use the OOTB options rather than doing customization.

Thanks.