{"ScriptPreparationCode":"function randomDate(start, end) {\r\n return new Date(start.getTime() \u002B Math.random() * (end.getTime() - start.getTime()));\r\n}\r\n\r\nvar arrObjects = [];\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arrObjects.push({value:randomDate(new Date(2012, 0, 1), new Date())});\r\n}\r\n\r\nfunction getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar arrIntegers = [];\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arrIntegers.push({value:getRandomInt(100)});\r\n}\r\n\r\n","TestCases":[{"Name":"sort array of date property inside objects","Code":"arrObjects.sort((a,b) =\u003E a.value - b.value);","IsDeferred":false},{"Name":"sort array of integers","Code":"arrIntegers.sort((a,b) =\u003E a.value - b.value);","IsDeferred":false}]}