test for nested projection in order by