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

Method sortReverse

core/src/processing/data/IntList.java:638–657  ·  view source on GitHub ↗

Reverse sort, orders values from highest to lowest. @webref intlist:method @brief Reverse sort, orders values from highest to lowest

()

Source from the content-addressed store, hash-verified

636 * @brief Reverse sort, orders values from highest to lowest
637 */
638 public void sortReverse() {
639 new Sort() {
640 @Override
641 public int size() {
642 return count;
643 }
644
645 @Override
646 public int compare(int a, int b) {
647 return data[b] - data[a];
648 }
649
650 @Override
651 public void swap(int a, int b) {
652 int temp = data[a];
653 data[a] = data[b];
654 data[b] = temp;
655 }
656 }.run();
657 }
658
659
660 // use insert()

Callers

nothing calls this directly

Calls 1

runMethod · 0.65

Tested by

no test coverage detected