I have objects of type "Product" and an ArrayList of type 'Product' that contains multiple Product Objects.
Product
String ProductID;
int ProductRating;
I would like to traverse the ArrayList
and sort these Products by their ProductRating; Highest to Lowest, so that the first item in the ArrayList
contains the Highest rating and then decreasing thereafter.