@pwngh/economy-lab
    Preparing search index...

    Function compare

    • Orders two amounts of the same currency by minor units, so it drops straight into Array.sort. Throws CURRENCY_MISMATCH across currencies.

      Parameters

      Returns -1 | 0 | 1