Description
As we add more modules, it is increasingly important to make them easy to reference and discover within the list. There is currently no way to intentionally sort the modules, meaning that they are presented in a seemingly random order. It is preferrable to have some obvious logic behind the sort order, even if it is as simple as alphabetical order. Additionally, because we cannot reliably infer what extensions (and therefore modules) are installed on a given instance of MediaWiki, we cannot easily implement a custom sort order.
Conditions of acceptance
- Update the default sort order for modules to be the default module first, then alphabetical for all other modules
- Alphabetic sort order reflects English (for now, as we do not have translation in the module definitions nor spec discovery; translation only happens at the spec level)
- The discovery endpoint returns modules in the default sort order
- REST Sandbox modules are listed in the default sort order