ensure that Local Groups appear first in the legend