• Sorts list elements in a given order, in-place, from list[1] to list[#list]. Comp is a function that receives two list elements and returns true when the first element must come before the second in the final order (so that not comp(list[i+1],list[i]) will be true after the sort).

    Type Parameters

    • T

    Parameters

    • t: T[]
    • Optional comp: ((a, b) => boolean)
        • (a, b): boolean
        • Parameters

          Returns boolean

    Returns void