How does \Magento\Framework\Module\ModuleList\Loader::sortBySequence() work?

Contexts: