MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / sort

Method sort

src/org/opensourcephysics/numerics/ArrayLib.java:555–557  ·  view source on GitHub ↗

Sort two arrays simultaneously, using the sort order of the values in the first array to determine the sort order for both arrays. @param a the array to sort by @param b the array to re-arrange based on the sort order of the first array.

(int[] a, double[] b)

Source from the content-addressed store, hash-verified

553 * first array.
554 */
555 public static final void sort(int[] a, double[] b) {
556 mergesort(a, b, 0, a.length - 1);
557 }
558
559 /**
560 * Sort two arrays simultaneously, using the sort order of the values

Callers 11

convexHullMethod · 0.95
addColumnsMethod · 0.45
doRunEjsMethod · 0.45
doHeaderMouseClickedMethod · 0.45
deleteColumnMethod · 0.45
refreshTableMethod · 0.45
showDataTableMethod · 0.45
showDataTableMethod · 0.45
getFileListMethod · 0.45
findNearestXIndex0Method · 0.45
resortMethod · 0.45

Calls 2

mergesortMethod · 0.95
insertionsortMethod · 0.95

Tested by 2

getFileListMethod · 0.36
findNearestXIndex0Method · 0.36