Community
Participate
Working Groups
It would be enormously useful if the ordering of the Collections returned from various parts of the TS API were predictable and well-determined. By way of example, if I invoke the method getContainedModelComponents() on the same artifact in the same TS project, I should be certain that the artifacts will appear in the same order in each case. The key motivation for this is in regression testing where the if the order of the artifacts can be guaranteed to be the same, a simple compare of 2 sets of gerated files can very quickly give a result, wheras if the ordering is not the same a more complex eye-ball diff is usually necessary.
Very valid point. I believe the main reason because the order is inconsistent is the way we add/replace artifacts in the manager (and caches) each time an artifact is changed.
I don't want to change the implementation of any of these APIs. If there is still a need for this, please reopen. Callers can simply do a search to compare two separate collections.