add sortColumn to query