{"ScriptPreparationCode":"var arr = [{\r\n id: 1\r\n}, {\r\n id: 4\r\n}, {\r\n id: 2\r\n}, {\r\n id: 0\r\n}, {\r\n id: 3\r\n}];","TestCases":[{"Name":"sort","Code":"arr.sort((a, b) =\u003E a.id - b.id);","IsDeferred":false},{"Name":"reduce","Code":"arr.reduce(\r\n (a, b) =\u003E {\r\n \ta[b.id] = b;\r\n return a;\r\n }, []);","IsDeferred":false}]}