@classmethod
def alias_key(cls, name):
    """Sort key function to order aliases in source order, but with short
        forms(one dash) first."""
    return len(name) - len(name.lstrip('-')), next(cls.__key_count)
