Returning also the sort option to the client when requesting templates