I have an ArrayList with instances of a class (in this case 'loan'). This loan class contains a variable 'date'. I want to sort my ArrayList by these date variables in the most optimum way.
The way I have done date sorting before, is to use a List<DateTime>
. but in this case I want to sort a list/arraylist, keeping the rest of the information, so all the information can be used elsewhere