[Panel Containment] Replace restore order logic by "algorithms"

Authored by broulik on Dec 31 2016, 12:44 PM.

Description

[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