Function sort

  • Sorts the given values array and returns it

    Parameters

    • values: string[]
    • Optionalascending: boolean = true

    Returns string[]

    The sorted values array, in a new array.