#288 adding sorting param in API
#288 changes to the backend using the criteria API
#288 adding junit test

- unfortunately derby doesn't support sorting on blob/clob types
#288 Implementing sorting on the HQL backend for the
LATEST_YEAR_BY_COUNTRY sorting type