神岛 API 文档 - ArenaPro版
    Preparing search index...

    Intl.Collator 对象提供配置选项的接口。

    An interface that provides configuration options for Intl.Collator objects.

    interface CollatorOptions {
        caseFirst?: "upper" | "lower" | "false";
        ignorePunctuation?: boolean;
        localeMatcher?: "lookup" | "best fit";
        numeric?: boolean;
        sensitivity?: "base" | "accent" | "case" | "variant";
        usage?: "sort" | "search";
    }
    Index

    Properties

    caseFirst?: "upper" | "lower" | "false"

    指定大写字母和小写字母的排序方式。

    Specifies how upper and lower case letters should be sorted.

    ignorePunctuation?: boolean

    是否应在比较中忽略标点符号。

    Whether punctuation should be ignored in comparison.

    localeMatcher?: "lookup" | "best fit"

    要使用的区域匹配算法。

    The locale matching algorithm to use.

    numeric?: boolean

    是否应使用数字排序。

    Whether numeric sorting should be used.

    sensitivity?: "base" | "accent" | "case" | "variant"

    指定比较的灵敏度级别。

    Specifies the level of sensitivity for comparison.

    usage?: "sort" | "search"

    指定是用于排序还是搜索。

    Specifies whether it's for sorting or searching.