adding query parameter for changing sort behavior
fixing up query parameter