MCPcopy Create free account
hub / github.com/galacean/engine / sort

Method sort

packages/core/src/utils/DisorderedArray.ts:137–139  ·  view source on GitHub ↗

* Sort the array. * @param compareFn - The comparison function

(compareFn: (a: T, b: T) => number)

Source from the content-addressed store, hash-verified

135 * @param compareFn - The comparison function
136 */
137 sort(compareFn: (a: T, b: T) => number): void {
138 Utils._quickSort(this._elements, 0, this.length, compareFn);
139 }
140
141 /**
142 * Garbage collection, clean up all cached elements.

Callers 11

visitStructSpecifierFunction · 0.80
_vertexMainFunction · 0.80
_fragmentMainFunction · 0.80
sortCamerasMethod · 0.80
sortOverlayUICanvasesMethod · 0.80
_updateLocalDataMethod · 0.80
_updateLocalDataMethod · 0.80
processRaycastMethod · 0.80

Calls 1

_quickSortMethod · 0.80

Tested by

no test coverage detected