1) fix for sort fields
2) Example of using client with RESTful.