@player-ui/async-node-plugin 0.11.0--canary.614.21683 → 0.11.0--canary.614.21793
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5089,7 +5089,9 @@ var AsyncNodePlugin = function() {
|
|
|
5089
5089
|
};
|
|
5090
5090
|
if (node && (node.type === "view" || node.type === "asset") && Array.isArray(node.children)) {
|
|
5091
5091
|
node.children = node.children.sort(function(a, b) {
|
|
5092
|
-
var
|
|
5092
|
+
var aPath = a.path.join();
|
|
5093
|
+
var bPath = b.path.join();
|
|
5094
|
+
var pathsEqual = aPath === bPath;
|
|
5093
5095
|
if (pathsEqual) {
|
|
5094
5096
|
var aPlacement = getTemplateSymbolValue(a.value);
|
|
5095
5097
|
var bPlacement = getTemplateSymbolValue(b.value);
|
|
@@ -5105,7 +5107,7 @@ var AsyncNodePlugin = function() {
|
|
|
5105
5107
|
}
|
|
5106
5108
|
return 0;
|
|
5107
5109
|
}
|
|
5108
|
-
return
|
|
5110
|
+
return aPath > bPath ? 1 : -1;
|
|
5109
5111
|
});
|
|
5110
5112
|
}
|
|
5111
5113
|
return node;
|