JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Function default_lexicographic


    • Comparator reproducing Array.prototype.sort's default ordering (compare as strings), so histogram key order stays byte-identical to the historic comparator-free sort — that ordering is observable to every iterating caller.

      [10, 9, 1].sort(default_lexicographic);  // [1, 10, 9], as with plain .sort()
      

      Parameters

      • a: any
      • b: any

      Returns number