Module: ol/array

ol/array


import * as olArray from 'ol/array';

Methods

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

array.js, line 203
import {stableSort} from 'ol/array';

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.