+2006-03-14 Geoffrey Garen <ggaren@apple.com>
+
+ Oops, forgot to add this file.
+
+ * fast/js/resources/string-sort.js: Added.
+
2006-03-14 Geoffrey Garen <ggaren@apple.com>
Reviewed by Eric.
--- /dev/null
+description("This page tests sorting of string values");
+
+function shouldBeInThisOrder(a)
+{
+ shouldBeTrue('"' + a[0] + '"' + " < " + '"' + a[1] + '"');
+ shouldBe('[' + '"' + a[0] + '"' + ',' + '"' + a[1] + '"' + '].sort().toString()', '"' + a + '"');
+}
+
+shouldBeInThisOrder(["12", "123"]);
+shouldBeInThisOrder(["123", "13"]);
+shouldBeInThisOrder(["", " "]);
+shouldBeInThisOrder(["close", "closed"]);
+shouldBeInThisOrder(["a", "~"]);
+shouldBeInThisOrder(["_", "a"]);
+shouldBeInThisOrder(["0", "A"]);
+shouldBeInThisOrder(["-", "0"]);
+shouldBeInThisOrder([" ", "-"]);
+
+var successfullyParsed = true;