TEIID-2717 fix/enhancement for unrelated sorts over a union