Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Array.sortByProperty returning undefined on an empty array

    Chrome Version 50.0.2661.94 m

    I have recently upgraded from SmartClient 10 to 11 and noticed the following behavior when I run sortByProperty on an empty array.

    Example:
    [].sortByProperty("description", true)

    In Version v10.0p_2014-12-17/PowerEdition Deployment (2014-12-17), empty array [] is returned

    In Version v11.0p_2016-05-01/PowerEdition Deployment (2016-05-01), undefined is returned

    Documentation for Array.sortByProperty specifies the return value should be type: List - the list itself. What is the proper behavior in this case?

    Thanks!

    #2
    We've made a change to address this issue. Please try the next nightly build, dated May 6.

    Regards
    Isomorphic Software

    Comment

    Working...
    X