Fix action to sort user groups (tree)