Bugfixes, and make new entry in group be sorted immediately after the selected one.
Rename table subgroup to groupsinagroup (prep for next work).
wip