tertiary

    Tertiary level of comparison. Collation performs comparisons up to tertiary differences, such as case and letter variants. That is, collation performs comparisons of base characters (primary differences), diacritics (secondary differences), and case and variants (tertiary differences). Differences between base characters takes precedence over secondary differences, which takes precedence over tertiary differences.

    Mongo.Collation.Strength.swift:27
    case tertiary

    This is the default level.

    Other cases

    • case primary

      Primary level of comparison. Collation performs comparisons of the base characters only, ignoring other differences such as diacritics and case.

    • case secondary

      Secondary level of comparison. Collation performs comparisons up to secondary differences, such as diacritics. That is, collation performs comparisons of base characters (primary differences) and diacritics (secondary differences). Differences between base characters takes precedence over secondary differences.

    • case quaternary

      Quaternary Level. Limited for specific use case to consider punctuation when levels 1-3 ignore punctuation or for processing Japanese text.

    • case identical

      Identical Level. Limited for specific use case of tie breaker.