Correct attribute
Correct group by and sort