ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Module helpers/sorting

    Functions

    quantitySortingFn

    TanStack sorting comparator that orders two product rows by their normalized baseQuantity (a missing quantity sorts as 0).

    matchPercentageSortingFn

    Custom sorting function for match percentage comparison between two product rows. Compares the match percentage of products and returns a sort order value.

    priceSortingFn

    Custom sorting function for price comparison between two product rows. Compares the USD prices of products (falling back to raw price) and returns a sort order value.