D
ddailey
For reasons that are rather complicated, I have provided my JavaScript
sort() method of an array with the null parameter (rather than an
empty parameter list).
A=[2,3,8,4,1,0]
alert(A.sort(null))
In Opera, FF and Safari, A.sort(null) returns the same array as A, but
IE actually performs the default ascii-order sort. I would assume the
majority of browsers here are following the ECMA-script standard. Is
IE's behavior here a bug?
sort() method of an array with the null parameter (rather than an
empty parameter list).
A=[2,3,8,4,1,0]
alert(A.sort(null))
In Opera, FF and Safari, A.sort(null) returns the same array as A, but
IE actually performs the default ascii-order sort. I would assume the
majority of browsers here are following the ECMA-script standard. Is
IE's behavior here a bug?