finance-mgn - v2.1.0
    Preparing search index...

    Function sortByDateDesc

    • Sorts an array of Transaction objects in descending order based on their date.

      Assumes that the date is stored as a string in the format "MM/DD/YYYY" at the second position (index 1) of each Transaction tuple or array.

      Parameters

      • arr: Transaction[]

        The array of Transaction objects to sort.

      Returns Transaction[]

      A new array of Transaction objects sorted from newest to oldest by date.