I am adding a feature in my app which lets the user fill entries for past dates, if today is 14/03/2020 then it lets you fill entries for 10/03/2020(or any other date). But I am Having a problem with sorting my arraylist such that all the entries with same dates are together in the arraylist.
I show the entries to the user in a custom ListView and so to make my app user friendly I want to make all those entries with the same date to appear together.
I have a custom arraylist which accepts a Expense Name(String),Amount(String) and Date(String)
ArrayList<ExpenseData> customArrayList=new ArrayList<ExpenseData>();
If you need any other information please ask... Thank You!