apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

sortOn ArrayCollections is not working #204

Closed EshaanKumar closed 2 years ago

EshaanKumar commented 2 years ago

`var arr:Array = new ArrayCollection(); arr.push({label:"Z", data:"first"}); arr.push({label:"C", data:"second"}); arr.push({label:"E", data:"third"});

arr.sortOn('label');

expected output - arr.push({label:"C", data:"second"}); arr.push({label:"E", data:"third"}); arr.push({label:"Z", data:"first"}); `

The sortOn works on ArrayCollection and it sorts the object of Arrays based on property passed.

EshaanKumar commented 2 years ago

Tracking this by another githhub account