{"ScriptPreparationCode":"var n2 = 100;\r\nvar n3 = 1000;\r\nvar n4 = 10000;\r\nvar n4_5 = 50000;\r\nvar array2 = [];\r\nvar array3 = [];\r\nvar array4 = [];\r\nvar array4_5 = [];\r\nfor(let i = n2; i \u003E 0; i--) {\r\n array2.push((i * 7) % n2); \r\n}\r\nfor(let i = n3; i \u003E 0; i--) {\r\n array3.push((i * 7) % n3); \r\n}\r\nfor(let i = n4; i \u003E 0; i--) {\r\n array4.push((i * 7) % n4); \r\n}\r\nfor(let i = n4_5; i \u003E 0; i--) {\r\n array4_5.push((i * 7) % n4_5); \r\n}\r\n\r\nfunction sortArrayLodash(array) {\r\n _.sortBy(array, function (n) { return n });\r\n}\r\n\r\nfunction sortArrayJS(array) {\r\n array.sort(function(a, b) {\r\n \treturn a - b;\r\n });\r\n}","TestCases":[{"Name":"sort array JS n = 100","Code":"sortArrayJS(array2);","IsDeferred":false},{"Name":"sort array JS n = 1000","Code":"sortArrayJS(array3);","IsDeferred":false},{"Name":"sort array JS n = 10000","Code":"sortArrayJS(array4);","IsDeferred":false},{"Name":"sort array JS n = 50000","Code":"sortArrayJS(array4_5);","IsDeferred":false},{"Name":"sort array lodash n = 100","Code":"sortArrayLodash(array2);","IsDeferred":false},{"Name":"sort array lodash n = 1000","Code":"sortArrayLodash(array3);","IsDeferred":false},{"Name":"sort array lodash n = 10000","Code":"sortArrayLodash(array4);","IsDeferred":false},{"Name":"sort array lodash n = 50000","Code":"sortArrayLodash(array4_5);","IsDeferred":false}]}