MDL-31389 Convert set_source_sql with order clauses to set_source_table