map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function createStringComparator

    • Factory to create a comparator to compare strings using localCompare function.

      Parameters

      • locale: string = ...

        locale, e.g. en or de.

      • ignoreCase: boolean = true

        true, if strings should be compared ignoring case, otherwise false.

      • numeric: boolean = false

        true, try to interpret the string as number

      Returns Comparator<any>

      comparator for strings