add order by clause user input query