Fixed group by and order by with more than one columns.