[BUGFIX] Do not sort tree nodes after each append 31/52631/7
authorChrister Vindberg <cvi@systime.dk>
Thu, 27 Apr 2017 09:30:21 +0000 (11:30 +0200)
committerJan Helke <typo3@helke.de>
Fri, 5 May 2017 17:04:33 +0000 (19:04 +0200)
commit359a888185d9c3f370c31ff3cb73e5feb4692cdb
tree7c44f1fb91f87f6553993640c23618d54ea08c6c
parentf3c0b6664c81b67a601251ea4c91b705672db0f4
[BUGFIX] Do not sort tree nodes after each append

Nodes should not be sorted after each element append but only once at
the end.

This will reduce the execution time of
DatabaseTreeDataProvider::buildRepresentationForNode() a lot e.g. when
a category menu tree is generated.

Resolves: #81039
Releases: master, 8.7
Change-Id: I9cb57630f0179a0b2b3c921ca1eb97e7455ce962
Reviewed-on: https://review.typo3.org/52631
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christer V <cvi@systime.dk>
Tested-by: Christer V <cvi@systime.dk>
Reviewed-by: Anders Kostending <aha@systime.dk>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php