MCPcopy Index your code
hub / github.com/plotly/plotly.js / compare

Function compare

stackgl_modules/index.js:7438–7449  ·  view source on GitHub ↗
(i, j, data)

Source from the content-addressed store, hash-verified

7436}
7437
7438function compare(i, j, data) {
7439 i *= 2
7440 j *= 2
7441 var x = data[i],
7442 y = data[j]
7443 if(x < y) {
7444 return false
7445 } else if(x === y) {
7446 return data[i+1] > data[j+1]
7447 }
7448 return true
7449}
7450
7451function comparePivot(i, y, b, data) {
7452 i *= 2

Callers 4

quickSortFunction · 0.70
doVisitHalfFunction · 0.70
doVisitFunction · 0.70
unique_predFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…