Implement order by option for the mssql driver (#5008)