Tilmeld\Tilmeld::groupSort

Sort an array of groups hierarchically.

An additional property of the groups can be used to sort them under their parents.