diff --git a/lib/base/configobject.cpp b/lib/base/configobject.cpp index f8517d61d..b73285bc5 100644 --- a/lib/base/configobject.cpp +++ b/lib/base/configobject.cpp @@ -33,7 +33,6 @@ #include "base/workqueue.hpp" #include "base/context.hpp" #include "base/application.hpp" -#include #include #include #include @@ -618,13 +617,7 @@ void ConfigObject::RestoreObjects(const String& filename, int attributeTypes) void ConfigObject::StopObjects() { - auto types = Type::GetAllTypes(); - - std::sort(types.begin(), types.end(), [](const Type::Ptr& a, const Type::Ptr& b) { - return a->GetActivationPriority() > b->GetActivationPriority(); - }); - - for (const Type::Ptr& type : types) { + for (const Type::Ptr& type : Type::GetAllTypes()) { auto *dtype = dynamic_cast(type.get()); if (!dtype)