Support Article
Overriden sort function not found from grid
SA-27931
Summary
A NoSuchMethodException is encountered when attempting to call an overridden sort function from a grid.
Error Messages
Failed to process comparator list, java.lang.NoSuchMethodException: com.pegarules.generated.scrmfw_sort.your_method--(String,String)(java.lang.String, java.lang.String). Details: Invalid value for aComparator passed to com.pega.pegarules.data.internal.clipboard.Sorter.sortPageList(ClipboardProperty, String[], boolean[], String[])
Steps to Reproduce
1. Customize sort function for a property.
2. Try to call it while sorting grid (that property should be in a column).
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-29386.
Published September 21, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.