• Sorts an array in place by score ascending.

    Type Parameters

    • T

    Parameters

    • ts: T[]

      an array of things

    • score: ((t) => number)

      function to convert a thing to it's score

        • (t): number
        • Parameters

          • t: T

          Returns number

    Returns T[]

    the sorted array

Generated using TypeDoc