{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar arr = [];\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arr.push({value:getRandomInt(100)});\r\n}","TestCases":[{"Name":"Lodash orderby","Code":"_.orderBy(arr, [\u0027value\u0027], [\u0027desc\u0027]);","IsDeferred":false},{"Name":"Js sortByDesc","Code":"function sortByDesc(key) {\r\n return (a, b) =\u003E (a[key] \u003C b[key]) ? 1 : ((b[key] \u003C a[key]) ? -1 : 0);\r\n};\r\narr.concat().sort(sortByDesc(\u0027value\u0027))","IsDeferred":false}]}