@nospamproxy/core
    Preparing search index...

    Function compareDisplayText

    • Compare displayed text in a way that makes sense to humans.

      Parameters

      • a: string
      • b: string

      Returns number | undefined

      A negative number is a is smaller, a positive if bigger and undefined if a and b are equal.

      array.sort((a, b) => {
      return compareDisplayText(a, b)
      ?? compareSomethingElse(a, b)
      ?? 0;
      });