reworked the list population, to make groups sorted