提交 70d8f58b 编写于 作者: J Johannes Rieken

perf - use raw string ordering for faster menu creation

上级 6baf2fd3
......@@ -121,9 +121,10 @@ export class Menu implements IMenu {
}
// lexical sort for groups
let value = aGroup.localeCompare(bGroup);
if (value !== 0) {
return value;
if (aGroup < bGroup) {
return -1;
} else if (aGroup > bGroup) {
return 1;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册