Sort also groups lists