Added sort query to GET method