display groups by alphabetical order
optimize group stuff