Default Sort Order for Products

To set the default sort order for products retrieved using the client API you must use the setDefaultOrderBy() call on the This sets the default sort order used by the following calls:

setDefaultOrderBy() should be called in the struts action class prior to making the API call that actually fetches the data from the DB. The parameter accepted by setDefaultOrderBy() must be an attribute of such as ORDER_BY_NAME_ASCENDING or ORDER_BY_MANUFACTURER etc.