Community
Participate
Working Groups
i20041123 Using the local history UI, sometimes states that have the same apparent timestamp may be in the wrong order. I could verify this with both new and existing implementation for the history store. Need to investigate if it is us or Compare.
Verified we are behaving correctly. We return the states in the right order as spec'd. The problem comes from the fact that compare will try to sort the states (history items, actually) again (EditionSelectionDialog.internalSort), and the sorting algorithm used (quick sort) is not stable, potentially changing the order of states with the same modification time.
Suggestion: you can use java.util.Arrays.sort(Object[], java.util.Comparator), which is guaranteed to be stable.
fix released for N20041126