{"ScriptPreparationCode":"const list = [20, 10, 50, 33, 1, 5, 90, 45, 39, 77, 11];\r\n\r\nfunction built_in_sort(arr) {\r\n return arr.sort((a, b) =\u003E a - b);\r\n}\r\n\r\n//Insertion sort\r\nfunction insertion_sort(ary) {\r\n for (var i = 1, l = ary.length; i \u003C l; i\u002B\u002B) {\r\n var value = ary[i];\r\n for (var j = i - 1; j \u003E= 0; j--) {\r\n if (ary[j] \u003C= value)\r\n break;\r\n ary[j \u002B 1] = ary[j];\r\n }\r\n ary[j \u002B 1] = value;\r\n }\r\n return ary;\r\n}","TestCases":[{"Name":"Built in sort","Code":"built_in_sort([20, 10, 50, 33, 1, 5, 90, 45, 39, 77, 11])","IsDeferred":false},{"Name":"Insertion sort","Code":"insertion_sort([20, 10, 50, 33, 1, 5, 90, 45, 39, 77, 11])","IsDeferred":false}]}