fixed bug introduced with commit "no more removal of ORDERBY in MSSQL"

commit df4d8a523860eaa60547539188faf4fed1d7cf74