It try to sort using the date string not the actual time. (since the date is in dd-mmm-yy format, the sort order is not the normal expected date time sort. See attachment)
and line 2179 and we retrive the date as a String and when we later use compare it will not sort in the same order as if it was a Date object. I suggest that we change the parsed string in line 2195 to a date object using:
I think that the date is a String so the sort will not work as expected. Is it possible that you can send me the output form:
cleartool lshistory -long <any cc="" element=""></any>
so that I can see the output from the command.
br,
//mike
Looking at:https://sourceforge.net/p/clearcase-java/code/ci/master/tree/net.sourceforge.clearcase/src/commandline/net/sourceforge/clearcase/ClearCaseCLIImpl.java#l2189
and line 2179 and we retrive the date as a String and when we later use compare it will not sort in the same order as if it was a Date object. I suggest that we change the parsed string in line 2195 to a date object using:
http://stackoverflow.com/questions/2201925/converting-iso8601-compliant-string-to-java-util-date
//mike
This is how our date looks like:
2007-09-27T12:35:46+02:00
Or as in reporters case: 01-Apr-08.12:38:04
Fixed and will be in release 2.2.35.