@staticmethod<EOL><INDENT>def _componentSortKey(componentAndType):<DEDENT>
component, asn1Spec = componentAndType<EOL>if asn1Spec is None:<EOL><INDENT>asn1Spec = component<EOL><DEDENT>if asn1Spec.typeId == univ.Choice.typeId and not asn1Spec.tagSet:<EOL><INDENT>if asn1Spec.tagSet:<EOL><INDENT>return asn1Spec.tagSet<EOL><DEDENT>else:<EOL><INDENT>return asn1Spec.componentType.minTagSet<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return asn1Spec.tagSet<EOL><DEDENT>
Sort SET components by tag

        Sort regardless of the Choice value (static sort)