I am familiar with how to sort 2D arrays in column-wise ascending order (based on column 1 in this instance), using the method
Arrays.sort(myArray, Comparator.comparingDouble(a -> a[1]));
Is there any way to modify this method to sort the array in descending order instead? I'd like to find a way to do so that is not just sorting it in ascending order and flipping it on its head since that won't work for my purposes.
Any suggestions would be helpful!