I have an ArrayList that contains strings like 2008-02-10T12:29:33.000
[2008-02-11T12:29:33.000, 2008-02-10T12:29:33.000]...
I want to sort this ArrayList in natural order. For this I have to convert this strings into a Date I quess. The order after sorting sorting the ArrayList above shoult be:
[2008-02-10T12:29:33.000, 2008-02-11T12:29:33.000]
The programming language that I use is Java.
I don't believe you need to do any conversion, as there is a natural order of those strings (at least I can't see a counterexample).
So
Collections.sort()
should do the trick.