We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Let's say I define a class with int x and int y, and make an array of instances of that class. How can I sort that array by x values in decreasing order?
Answers
http://docs.Oracle.com/javase/8/docs/api/java/util/Arrays.html#sort-java.lang.Object:A-
http://docs.Oracle.com/javase/8/docs/api/java/lang/Comparable.html
https://forum.Processing.org/two/discussions/tagged?Tag=compareto()