fix up order by clause parsing