You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2021/04/13 20:18:09 UTC

[royale-asjs] branch develop updated: Fix ArrayView not sorted numerically from string fields #1100

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new f78a62e  Fix ArrayView not sorted numerically from string fields #1100
     new 4f5ec45  Merge pull request #1101 from mjesteve/SortOn_numeric_#1100
f78a62e is described below

commit f78a62ef25ae5bac03a3ef3dfe8896325e7b1e1b
Author: hiedra-iest <mj...@iest.com>
AuthorDate: Tue Apr 13 19:55:27 2021 +0200

    Fix ArrayView not sorted numerically from string fields #1100
---
 .../Language/src/main/royale/org/apache/royale/utils/Language.as      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
index 7b4a60d..c62c159 100644
--- a/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
+++ b/frameworks/projects/Language/src/main/royale/org/apache/royale/utils/Language.as
@@ -541,10 +541,10 @@ package org.apache.royale.utils
         {
             for each(var n:String in sortNames)
             {
-                if (a[n] > b[n])
+                if (Number(a[n]) > Number(b[n]))
                 {
                     return muler;
-                } else if (a[n] < b[n])
+                } else if (Number(a[n]) < Number(b[n]))
                 {
                     return -muler;
                 }