added sorting of groups to be shown on sorted groups listing tab