special order by for mssql and db2