Sort account groups