MCPcopy Create free account
hub / github.com/BaseXdb/basex / createOrder

Method createOrder

basex-core/src/main/java/org/basex/util/Array.java:194–199  ·  view source on GitHub ↗

Sorts the specified tokens and returns an array with offsets to the sorted array. @param values values to sort by (will be sorted as well) @param numeric numeric sort @param ascending ascending @return array containing the order

(final byte[][] values, final boolean numeric,
      final boolean ascending)

Source from the content-addressed store, hash-verified

192 * @return array containing the order
193 */
194 public static int[] createOrder(final byte[][] values, final boolean numeric,
195 final boolean ascending) {
196 final IntList il = number(values.length);
197 il.sort(values, ascending, numeric);
198 return il.finish();
199 }
200
201 /**
202 * Sorts the specified double values and returns an array with offsets to the sorted array.

Callers 9

FTCacheMethod · 0.95
orderMethod · 0.95
descMethod · 0.95
infoMethod · 0.95
textToNumMethod · 0.95
calcWidthsMethod · 0.95
optimizeMethod · 0.95
prepareMethod · 0.45
writeMethod · 0.45

Calls 3

numberMethod · 0.95
sortMethod · 0.95
finishMethod · 0.95

Tested by

no test coverage detected