sort Method

  • Sort the array entries.
  • Uses insertion sort -- fine for small arrays (less than 30), slow for larger arrays

sort(compareMethod: (a: any, b: any) => number...): void

Parameter Type Description
compareMethod (a: any, b: any) => number comparison method

Returns - void

Defined in

Last Updated: 17 December, 2024