Correct sorting groups of the icons