How do I sort Object arraylist based on timing in the object. for example, 13:00pm to be first second to be 14:00pm and so on if my timing is in an arraylist ? So basically Object with timing of 13:00PM will be sort to first position and object with timing of 14:00 PM will be sort to second position in the object arraylist
Below is my object:
arraylist
ordersArrayList.add(new Orders(AN,collectionTime,name,Integer.parseInt(quantity),tid,addOn));
Collection Time values are like 13:00 PM and 14:00 PM and so on.
I tried using Collection sort but not really sure how to use it with Object