Hello Steve,
Parameter on which we would like to sort can be sent as part of URL as below.
/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/FlightCollection?$orderby=carrid desc
Where result set is sorted on carrid in descending order.
We need to manual implement sorting logic in the DPC_EXT class by using importing parameter IT_ORDER of the method Get_EntitySet to get all the sort parameters which are sent as part of URL.
Regards,
Ashwin