fix group sequence order
Merge pull request #2754 from xabbuh/issue-2751

fix group sequence order