adjust ui priority (#4542)

This commit is contained in:
JoneLau
2019-06-03 09:42:22 +08:00
committed by Weiliang Wang
parent 03a5d28c8c
commit adfbffacd3
+2 -2
View File
@@ -444,8 +444,8 @@ export class UI {
sortList.sort((a, b) => {
const aComp = a.getComponent(UIComponent);
const bComp = b.getComponent(UIComponent);
const ca = aComp ? aComp.priority : -1;
const cb = bComp ? bComp.priority : -1;
const ca = aComp ? aComp.priority : 0;
const cb = bComp ? bComp.priority : 0;
return ca - cb;
});