Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table Sorting

Hi All,

Is there a way to sort a table by two columns?

I don't need sorting actions on the table hedaers or a single column sort, which TableSorter enables.

I will give an example:

Table before sorting

A U 200

B H 100

A I 300

B A 400

Table after sorting

A I 300

A U 200

B A 400

B H 100

Thanks,

Aviad

replied

Hi Aviad,

Check

Usage of the Node-Function "sortElements"

Especially general helper class from Valery: sorting by mulyiple attributes

node.sortElemenst(   new GenericNodeElementComparator  (    new OrderingExpression().desc("Salary").asc("Name")  ));

Best regards, Maksim Rashchynski.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question