You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/08/27 08:44:47 UTC

[royale-asjs] branch develop updated: Fix arrays not sorted numerically #900

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

carlosrovira 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 3801583  Fix arrays not sorted numerically #900
     new 4713917  Merge pull request #902 from jleistner/bugfix/issue-900
3801583 is described below

commit 3801583efe297704eb4b9380c16f8629636cd566
Author: Jonathan Arndt <jo...@webfleet.com>
AuthorDate: Thu Aug 27 09:24:52 2020 +0200

    Fix arrays not sorted numerically #900
---
 .../Language/src/main/royale/org/apache/royale/utils/Language.as        | 2 ++
 1 file changed, 2 insertions(+)

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 2735eec..50810a8 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
@@ -353,6 +353,8 @@ package org.apache.royale.utils
         
         private static function compareAsNumber(a:Object, b:Object):int
         {
+            a = Number(a)
+            b = Number(b)
             if (a > b)
             {
                 return muler;