Simple grouping and sorting implemented
Needs to be fine tuned
There is a bug in switching between sorts while grouped