{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 1_000_000; i\u002B\u002B) {\r\n arr.push({ value: Math.random() });\r\n}","TestCases":[{"Name":"Native JS map and sort","Code":"\r\narr.map(item=\u003E({...item, negated_square: -item.value*item.value})).sort((a, b) =\u003E a.negated_square - b.negated_square);\r\n","IsDeferred":false},{"Name":"lodash sortby(native map)","Code":"_.sortBy(arr.map(item=\u003E({...item, negated_square: -item.value*item.value})), \u0027negated_square\u0027);","IsDeferred":false},{"Name":"lodash chain map, and sortBy","Code":"_.chain(arr).map(item=\u003E({...item, negated_square: -item.value*item.value})).sortBy(\u0027negated_square\u0027);","IsDeferred":false}]}