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!
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!
Comment