MDL-31390 Convert set_source_sql with order clauses to set_source_table