{"ScriptPreparationCode":"var k1_rand = new Array(1000); \r\nfor (i = 0; i \u003C k1_rand.length; i\u002B\u002B) {\r\n k1_rand[i] = { date: (Math.random() * (new Date(2012, 0, 1).getTime())), value: i }\r\n}\r\n\r\nvar k5_rand = new Array(5000);\r\nfor (i = 0; i \u003C k5_rand.length; i\u002B\u002B) {\r\n k5_rand[i] = { date: (Math.random() * (new Date(2012, 0, 1).getTime())), value: i }\r\n}\r\n\r\nvar k1_straight = new Array(1000); \r\nfor (i = 0; i \u003C k1_straight.length; i\u002B\u002B) {\r\n k1_straight[i] = { date: (new Date(2012, 0, 1).getTime() \u002B i), value: i }\r\n}\r\n\r\nvar k5_straight = new Array(5000);\r\nfor (i = 0; i \u003C k5_straight.length; i\u002B\u002B) {\r\n k5_straight[i] = { date: (new Date(2012, 0, 1).getTime() \u002B i), value: i }\r\n}","TestCases":[{"Name":"k1 rand sort","Code":"k1_rand.sort((a,b) =\u003E (a.date \u003E b.date) ? 1 : ((b.date \u003E a.date) ? -1 : 0))","IsDeferred":false},{"Name":"k5 rand sort","Code":"k5_rand.sort((a,b) =\u003E (a.date \u003E b.date) ? 1 : ((b.date \u003E a.date) ? -1 : 0))","IsDeferred":false},{"Name":"k1 straight sort","Code":"k1_straight.sort((a,b) =\u003E (a.date \u003E b.date) ? 1 : ((b.date \u003E a.date) ? -1 : 0))","IsDeferred":false},{"Name":"k5 straight sort","Code":"k5_straight.sort((a,b) =\u003E (a.date \u003E b.date) ? 1 : ((b.date \u003E a.date) ? -1 : 0))","IsDeferred":false}]}