You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/11/25 03:15:58 UTC
[royale-asjs] 01/03: minor: standardise part of the toString
implemenation of TypeDefinition between swf and js
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit a852a29831d7f6f9463736c9e0f02ea32823e224
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Nov 25 16:12:57 2020 +1300
minor: standardise part of the toString implemenation of TypeDefinition between swf and js
---
.../src/main/royale/org/apache/royale/reflection/TypeDefinition.as | 1 +
1 file changed, 1 insertion(+)
diff --git a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
index a7d3415..7c2614b 100755
--- a/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
+++ b/frameworks/projects/Reflection/src/main/royale/org/apache/royale/reflection/TypeDefinition.as
@@ -890,6 +890,7 @@ COMPILE::SWF {
while (collections.length) {
var collectionType:String = collections.shift();
var collection:Array =collections.shift();
+ collection.sort(function (item1:Object, item2:Object):int{ return item1.name < item2.name ? -1 : 1 });
s += collectionType+" :";
if (!collection || !collection.length) {
s+= "\n\t{none}\n"