Changed to proper format the order by in sqlserver