for (final Context context : courseGroup.getContextsWithCourseGroups()) {
for (final Context context : courseGroup.getSortedContextsWithCourseGroups()) {
    private void collectChildCourseGroups(final List<SelectItem> result, final CourseGroup courseGroup,            final String previousCourseGroupName) {        String currentCourseGroupName = "";        if (!courseGroup.isRoot()) {            currentCourseGroupName = ((previousCourseGroupName.length() == 0) ? "" : (previousCourseGroupName + " > "))                    + courseGroup.getName();            result.add(new SelectItem(courseGroup.getIdInternal(), currentCourseGroupName));        }        for (final Context context : courseGroup.getContextsWithCourseGroups()) {            collectChildCourseGroups(result, (CourseGroup) context.getDegreeModule(),                    currentCourseGroupName);        }    }