Making sure order by clauses don't use the same column twice.