Task #67986
closedAdjust DependencyOrderService to set elements without dependencies last
100%
Description
In case you have a long list of items, where only a few have a dependency definition, those items may currently be far apart in the final ordered list.
While this is not a problem in general, it seems useful to have items, which have a relation, close to each other in the list.
A usecase is ordering of UI elements. See #65550.
Moreover the service generally uses an alphabetical order of items for building the dependency matrix and for working on the initial set of "root nodes" when creating the final list.
We now slightly adjust the algorithm to preserve the alphabetical order for items with the same "level" in the dependency graph. (Those are items, which can be put in any order, since their order does not matter according to dependency specification.)
This change of course also affects the PackageStates.php file, which holds the extension loading order. While the content of this file might change, the functionality does of course not change.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41000
Updated by Markus Klein over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c4e94723a51e960282dd155d7b80cf487b398f42.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed