Module: ol/array

ol/array


Methods

module:ol/array~stableSort(arr, compareFnc)

array.js, line 203

Sort the passed array such that the relative order of equal elements is preverved. See https://en.wikipedia.org/wiki/Sorting_algorithm#Stability for details.

Name Type Description
arr Array.<*>

The array to sort (modifies original).

compareFnc function

Comparison function.