Problem/Motivation

#3615423: Avoid rebuilding the container in tests just to create a directory changes ModuleWeight::sort() to static, we should update any calls to it in core to call it statically once that issue lands.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

catch created an issue.