I have an arrayList.
This is an arrayList of strings. The string contains a \"Date.toString\" in format of \"January 1, 1970, 00:00:00 GMT\" +
\"Date.toString\"
\"January 1, 1970, 00:00:00 GMT\"
For each String, convert it to a Date, possibly using a SimpleDateFormat, and put them all in a TreeMap, which will sort them for you.
String
Date
SimpleDateFormat
TreeMap
Edit: And as @Sean Patrick Floyd suggested, do it on input.