Updated doModifyLimitQuery in SQLServerPlatform to handle subqueries with Ordering