Sign in
webkit
/
WebKit
/
e0dc16a522ef373cb01a123d3af713236760799b
/
.
/
LayoutTests
/
js
/
script-tests
/
sort-non-numbers.js
blob: 08e0420053736adb782bfb937b8c39319932fb06 [
file
] [
log
] [
blame
]
description
(
"This tests numerically sorting an array of non-numbers."
);
var
test
=
[
"2"
,
"1"
,
"3"
];
test
.
sort
(
function
(
v1
,
v2
)
{
return
v1
-
v2
;
});
shouldBe
(
"String(test)"
,
"'1,2,3'"
);