code: def normalizeGlyphOrder(value):
      
      if not isinstance(value, (tuple, list)):
          raise TypeError("Glyph order must be a list, not %s."
                          % type(value).__name__)
      for v in value:
          normalizeGlyphName(v)
      duplicates = sorted(v for v, count in Counter(value).items() if count > 1)
      if len(duplicates) != 0:
          raise ValueError("Duplicate glyph names are not allowed. Glyph "
                           "name(s) '%s' are duplicate." % ", ".join(duplicates))
      return tuple([unicode(v) for v in value])
docs: Normalizes glyph order.
  
      ** **value** must be a ``tuple`` or ``list``.
      * **value** items must normalize as glyph names with
        :func:`normalizeGlyphName`.
      * **value** must not repeat glyph names.
      * Returned value will be a ``tuple`` of unencoded ``unicode`` strings.