I have arrayLists of Dates which is in String format then how can I sort this arraylists,
ArrayList aryBeginDate;
ArrayList aryDu
Very Simple Answer:For Ascending just call this method:
Collections.sort(mArrayList, new OutcomeAscComparator());
public class OutcomeAscComparator implements Comparator
Select is my model, For Descending:
Collections.sort(mArrayList, new OutcomeDescComparator());
public class OutcomeDescComparator implements Comparator
Please dont forget to refresh your list view IF you want your list to be AScending and Descending
mListView.invalidateViews();
mAdapter.notifyDataSetChanged();