[Webkit-unassigned] [Bug 27781] Javascript numeric array.sort() returns a bad result if one or more elements vary greatly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 17:32:30 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27781





--- Comment #4 from Jim Perry <james.r.perry at gmail.com>  2009-07-28 17:32:30 PDT ---
(In reply to comment #3)
> Array.prototype.sort defaults to string sort, not numeric sort. Your title says
> "numeric". Why did you expect this sort to be numeric?

I was expecting a numeric sort since I was not giving it string literals.
Having looked at the Javascript core reference, I see that I am incorrect and
this is not a bug.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list