Do not rely on coriolis-data' internal ordering of modules for display purposes

This commit is contained in:
Cmdr McDonald
2016-12-12 10:38:50 +00:00
parent 5426b55637
commit 7c6a4fc5f8
5 changed files with 11 additions and 7 deletions

View File

@@ -203,6 +203,12 @@ export default class AvailableModulesMenu extends TranslatedComponent {
this.context.tooltip();
}
/**
* Order two modules suitably for display in module selection
* @param {Object} a the first module
* @param {Object} b the second module
* @return {int} -1 if the first module should go first, 1 if the second module should go first
*/
_moduleOrder(a, b) {
// Named modules go last
if (!a.name && b.name) {