add the 'sort' and ratings param in the functions destroy, update and create