{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nfunction makeid(length) {\r\n var result = \u0027\u0027;\r\n var characters = \u0027ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0027;\r\n var charactersLength = characters.length;\r\n for ( var i = 0; i \u003C length; i\u002B\u002B ) {\r\n result \u002B= characters.charAt(Math.floor(Math.random() * charactersLength));\r\n }\r\n return result;\r\n}\r\n\r\nvar arr = [];\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arr.push({\r\n published: getRandomInt(100),\r\n title: makeid(20),\r\n });\r\n}\r\n","TestCases":[{"Name":"lodash","Code":"_.orderBy(arr, [\u0027published\u0027, \u0027title\u0027], [\u0027desc\u0027, \u0027desc\u0027]);","IsDeferred":false},{"Name":"sortBt","Code":"arr.sort((a, b) =\u003E {\r\n\tif (a.published \u003E b.published) {\r\n return -1;\r\n } else if (a.published \u003C b.published) {\r\n return 1;\r\n }\r\n\t\r\n return a.title.localeCompare(b.title);\r\n})","IsDeferred":false}]}