MCPcopy Create free account
hub / github.com/breck7/scroll / sort

Method sort

external/.scrollLibs.js:17214–17218  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

17212 return particle.copyTo(new this.constructor(), 0)
17213 }
17214 sort(fn) {
17215 this._getSubparticlesArray().sort(fn)
17216 this._clearCueIndex()
17217 return this
17218 }
17219 invert() {
17220 this.forEach(particle => particle.atoms.reverse())
17221 return this

Callers 15

_cueSortMethod · 0.95
sortByColumnsMethod · 0.95
sortByMethod · 0.95
_allCommandsMethod · 0.80
gFunction · 0.80
.scrollLibs.jsFile · 0.80
normalizeSelectionFunction · 0.80
runCommandMethod · 0.80
_getEnumOptionsMethod · 0.80
toTypeScriptInterfaceMethod · 0.80

Calls 2

_getSubparticlesArrayMethod · 0.95
_clearCueIndexMethod · 0.95

Tested by

no test coverage detected