Defining the Order of the Search Results
You can define the order using one of the following Order (com.softwareag.centrasite.appl.framework.persistence.search.Order) static methods, which create ascending or descending order for a given property:
asc(String propertyName) for ascending
desc(String propertyName) for descending
The rules for the property name when creating Order are the same as when creating a Predicate. The user must know whether the bean types added to the search object support the property passed to the Order asc(String propertyName) or desc(String propertyName) methods. You can add multiple orders to the search object.
Example:
Order order = Order.asc("description");