提交 b468c427 编写于 作者: J Johannes Rieken

fix action sorting issue - larger isn't the same as equal

上级 92f29cb5
......@@ -198,8 +198,13 @@ export function prepareActions(actions: IAction[]): IAction[] {
actions = actions.sort((first: Action, second: Action) => {
let firstOrder = first.order;
let secondOrder = second.order;
return firstOrder < secondOrder ? -1 : 1;
if (firstOrder < secondOrder) {
return -1;
} else if (firstOrder > secondOrder) {
return 1;
} else {
return 0;
}
});
// Clean up leading separators
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册