#57199Extensions must be installed after their dependencies
Description
When the array of to-be-installed extensions is build up, the array is created in the wrong order, because dependencies will be added after their dependent extensions.
Reverse the install queue before attempting to install the install queue.