class_docstr: See EntityPathPattern for more details.
class_docstr_tok: ["See","EntityPathPattern","for","more","details","."]
docstr: Check that fields_to_compare is sorted so that patterns that do the same thing can be compared.
docstr_tok: ["Check","that","fields_to_compare","is","sorted","so","that","patterns","that","do","the","same","thing","can","be","compared","."]
code: def __post_init__(self) -> None:
      """Check that fields_to_compare is sorted so that patterns that do the same thing can be compared."""
      assert is_sorted(self.fields_to_compare)
  
imports: from __future__ import annotations
  import logging
  from dataclasses import dataclass
  from enum import Enum
  from typing import Any, List, Optional, Sequence, Tuple
  from dbt_semantic_interfaces.references import EntityReference
  from dbt_semantic_interfaces.type_enums import TimeGranularity
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from more_itertools import is_sorted
  from typing_extensions import override
  from metricflow.specs.patterns.spec_pattern import SpecPattern
  from metricflow.specs.specs import InstanceSpec, InstanceSpecSet, LinkableInstanceSpec
label_desc: Use image node_id 2 for calling the EntityLinkPatternParameterSet obj's underlying member method code with example usage: obj.__post_init__() without return types