ChemPal Documentation - v0.0.0
    Preparing search index...

    Function priceSortingFn

    • Custom sorting function for price comparison between two product rows. Compares the USD prices of products and returns a sort order value.

      Parameters

      Returns -1 | 0 | 1

      Returns 1 if rowA -gt rowB, -1 if rowA -lt rowB, 0 if equal