Clear order by on UOW when calculating total record count. This needs to be done for SQL Server support.
Authored by: b_calderwood 2013-08-12
Parent: [r7499]
Child: [r7501]