Sorting criteria in the server.