TEIID-2802 making sure group by and order by work together