I just wrote a JUnit test that proves the defect.
And it shows that the sorting problem was still here in 2.0.8, but it is not here any more in 2.0.9-SNAPSHOT (I didn't check 2.1-SNAPSHOT).
I fixed it on 2007/12/07 in r601095 (r601096 in trunk) while working on such a dependencies sorting issue in
MANTTASKS-91: one HashSet to LinkedHashSet transformation had been forgotten...
Now I need to transform this JUnit test in an integration test to ensure that no regression will happen in the future.
Can somebody check that it is ok for him with 2.0.9-SNAPSHOT? I'm pretty sure it is ok given my JUnit test, but having someone confirm this would be even better.