I have a timestamp string like this:
2016-01-14T22:43:55Z 2016-01-15T00:04:50Z 2016-01-15T00:44:59+08:30 2016-01-15T01:25:35-05:00 2016-01-15T01:44:31+08:30
You must use Comparator. First of all create a class and implement Comparator. And then compare value1 and value2 with your choice. After that use this class to Collections.sort.
Comparator
Regards, a.ayati