/**
* Sorts the Objects in the list
* @param list the instance of the EList containing EObjects
* @param eFactory the instance of the SDO factory
* @param sortBy the EAttribute to be used for sorting
* @param desc true for descending sort, false for ascending
* @return true if the order of objects in list is changed
*/
public boolean sort(List list, EFactory eFactory
, EAttribute sortBy, boolean desc);
public String doSortByPolicyNameAction(){
//table2 is the policy data table
//you may choose to add a param scope variable
//for policy list, instead of using the table control
getVarBrokerDetailRootBean().sortByPolicyName
((java.util.List)getTable2().getValue());
// returning empty string re-displays the same page with same data binding
return "";
}