{"ScriptPreparationCode":"var objs = []\r\nvar i = 0\r\nfor (i; i \u003C 100000; i\u002B\u002B) {\r\n var obj = {}\r\n obj.x = Math.random() * 100\r\n obj.y = Math.random() * 100\r\n obj.z = Math.random() * 100\r\n objs.push(obj)\r\n}","TestCases":[{"Name":"IF statement ","Code":"objs.sort((a, b) =\u003E {\r\n if (a.x != b.x) {\r\n return a.x - b.x\r\n }\r\n if (a.y != b.y) {\r\n return a.y - b.y\r\n }\r\n return a.z - b.z\r\n})","IsDeferred":false},{"Name":"OR assignment","Code":"objs.sort((a, b) =\u003E {\r\n return (a.x - b.x) || (a.y - b.y) || (a.z - b.z)\r\n})","IsDeferred":false}]}