You can filter which groups are displayed by ui-select, by using the group-filter attribute. The provided value should either be an array or function.
group-filter
Selected: {{country.selected}}
group-filter="['Z','B','C']"
group-filter="reverseOrderFilterFn"