MCPcopy Index your code
hub / github.com/processing/processing / sort

Method sort

core/src/processing/data/Sort.java:21–28  ·  view source on GitHub ↗
(int i, int j)

Source from the content-addressed store, hash-verified

19
20
21 protected void sort(int i, int j) {
22 int pivotIndex = (i+j)/2;
23 swap(pivotIndex, j);
24 int k = partition(i-1, j);
25 swap(k, j);
26 if ((k-i) > 1) sort(i, k-1);
27 if ((j-k) > 1) sort(k+1, j);
28 }
29
30
31 protected int partition(int left, int right) {

Callers 15

runMethod · 0.95
discoverMethod · 0.45
addSketchesMethod · 0.45
addContributionMethod · 0.45
updateCategoryChooserMethod · 0.45
loadAllMethod · 0.45
setMenuMnemonicsMethod · 0.45
paintComponentMethod · 0.45
listMethod · 0.45
listMethod · 0.45
listMethod · 0.45
listMethod · 0.45

Calls 2

swapMethod · 0.95
partitionMethod · 0.95

Tested by

no test coverage detected