Fix the bug for complex aggs with order by plan node
add a complex agg test case, still need to work on it