With the standard TableSorter Class we can only sort Table Columns, but many a times it is required to sort context node for some attributes, which are not binded to the Table columns.Below I have created a generic Sorter Class following the same line as TableSorter Class to sort context node. This class can be utilized to sort on any of the attribute in the node.
Create a Java Class in any of the package of your webdynpro dc.
Using NodeSorter Class in the Code
Create an instance of the NodeSorter Class for the context node to be sorted.Call sort method on this instance whenever sorting is required.