Correctly ORDER the results of UNION / INTERSECT / EXCEPT. Fix MB-12449.