@eagleoutice/flowr - v2.17.4
    Preparing search index...

    Function compareByCodeUnit

    • Orders two strings by code unit, which every machine agrees on. Use this wherever an order decides an analysis result: localeCompare reads the machine's locale and ICU build, so it would make two users analyzing the same code disagree (da orders A before a, en-US the other way round).

      Type Parameters

      • S extends string

      Parameters

      • a: S
      • b: S

      Returns number