[Panel Containment] Replace restore order logic by "algorithms"
Replace the convoluted make an object with the order of applets by iterating
them and then add them in order by a sort() and forEach().
This makes the code much easier to follow.
Differential Revision: https://phabricator.kde.org/D3834