Question
3
Replies
1277
Views
Capgemini
Posted: January 10, 2017
Last activity: January 11, 2017
Closed
Sort Pagelist with respect to specific string
Hi,
How to sort pagelist, based on a string, rather than ASC|DSC, is there any function. Sorted items should start with that string.
Thanks
Arun
***Moderator Edit: Vidyaranjan| Updated Categories***
Hi Arun,
For example, if we have strings like ["welcome", "to", "pega", "systems", "community"], now this list of strings can be sorted either ASC|DSC order. But how can the list of these strings can be sorted based on some string?
Lets assume my string is "peg" then if you want to display the strings which starts with "peg" first then how you will define the order of the remaining strings?
I dont think this functionality can be achieved as the expected end result is not clear. If you are aware of the expected end result based on the given string could you let us know with a sample example.
Regards,
Mahesh