{"ScriptPreparationCode":"function shuffle_arr(arr) {\r\n \tconst a = [...arr];\r\n for (let i = a.length - 1; i \u003E 0; i--) {\r\n const j = Math.floor(Math.random() * (i \u002B 1));\r\n [a[i], a[j]] = [a[j], a[i]];\r\n }\r\n return a;\r\n}\r\n\r\nvar pre_sorted_int = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100];\r\nvar reverse_int = pre_sorted_int.reverse();\r\nvar shuffled_int = shuffle_arr(pre_sorted_int);\r\n\r\nvar pre_sorted_obj = [{\u0022id\u0022:\u00220\u0022},{\u0022id\u0022:\u00221\u0022},{\u0022id\u0022:\u00222\u0022},{\u0022id\u0022:\u00223\u0022},{\u0022id\u0022:\u00224\u0022},{\u0022id\u0022:\u00225\u0022},{\u0022id\u0022:\u00226\u0022},{\u0022id\u0022:\u00227\u0022},{\u0022id\u0022:\u00228\u0022},{\u0022id\u0022:\u00229\u0022},{\u0022id\u0022:\u0022a\u0022},{\u0022id\u0022:\u0022b\u0022},{\u0022id\u0022:\u0022c\u0022},{\u0022id\u0022:\u0022d\u0022},{\u0022id\u0022:\u0022e\u0022},{\u0022id\u0022:\u0022f\u0022},{\u0022id\u0022:\u002210\u0022},{\u0022id\u0022:\u002211\u0022},{\u0022id\u0022:\u002212\u0022},{\u0022id\u0022:\u002213\u0022},{\u0022id\u0022:\u002214\u0022},{\u0022id\u0022:\u002215\u0022},{\u0022id\u0022:\u002216\u0022},{\u0022id\u0022:\u002217\u0022},{\u0022id\u0022:\u002218\u0022},{\u0022id\u0022:\u002219\u0022},{\u0022id\u0022:\u00221a\u0022},{\u0022id\u0022:\u00221b\u0022},{\u0022id\u0022:\u00221c\u0022},{\u0022id\u0022:\u00221d\u0022},{\u0022id\u0022:\u00221e\u0022},{\u0022id\u0022:\u00221f\u0022},{\u0022id\u0022:\u002220\u0022},{\u0022id\u0022:\u002221\u0022},{\u0022id\u0022:\u002222\u0022},{\u0022id\u0022:\u002223\u0022},{\u0022id\u0022:\u002224\u0022},{\u0022id\u0022:\u002225\u0022},{\u0022id\u0022:\u002226\u0022},{\u0022id\u0022:\u002227\u0022},{\u0022id\u0022:\u002228\u0022},{\u0022id\u0022:\u002229\u0022},{\u0022id\u0022:\u00222a\u0022},{\u0022id\u0022:\u00222b\u0022},{\u0022id\u0022:\u00222c\u0022},{\u0022id\u0022:\u00222d\u0022},{\u0022id\u0022:\u00222e\u0022},{\u0022id\u0022:\u00222f\u0022},{\u0022id\u0022:\u002230\u0022},{\u0022id\u0022:\u002231\u0022},{\u0022id\u0022:\u002232\u0022},{\u0022id\u0022:\u002233\u0022},{\u0022id\u0022:\u002234\u0022},{\u0022id\u0022:\u002235\u0022},{\u0022id\u0022:\u002236\u0022},{\u0022id\u0022:\u002237\u0022},{\u0022id\u0022:\u002238\u0022},{\u0022id\u0022:\u002239\u0022},{\u0022id\u0022:\u00223a\u0022},{\u0022id\u0022:\u00223b\u0022},{\u0022id\u0022:\u00223c\u0022},{\u0022id\u0022:\u00223d\u0022},{\u0022id\u0022:\u00223e\u0022},{\u0022id\u0022:\u00223f\u0022},{\u0022id\u0022:\u002240\u0022},{\u0022id\u0022:\u002241\u0022},{\u0022id\u0022:\u002242\u0022},{\u0022id\u0022:\u002243\u0022},{\u0022id\u0022:\u002244\u0022},{\u0022id\u0022:\u002245\u0022},{\u0022id\u0022:\u002246\u0022},{\u0022id\u0022:\u002247\u0022},{\u0022id\u0022:\u002248\u0022},{\u0022id\u0022:\u002249\u0022},{\u0022id\u0022:\u00224a\u0022},{\u0022id\u0022:\u00224b\u0022},{\u0022id\u0022:\u00224c\u0022},{\u0022id\u0022:\u00224d\u0022},{\u0022id\u0022:\u00224e\u0022},{\u0022id\u0022:\u00224f\u0022},{\u0022id\u0022:\u002250\u0022},{\u0022id\u0022:\u002251\u0022},{\u0022id\u0022:\u002252\u0022},{\u0022id\u0022:\u002253\u0022},{\u0022id\u0022:\u002254\u0022},{\u0022id\u0022:\u002255\u0022},{\u0022id\u0022:\u002256\u0022},{\u0022id\u0022:\u002257\u0022},{\u0022id\u0022:\u002258\u0022},{\u0022id\u0022:\u002259\u0022},{\u0022id\u0022:\u00225a\u0022},{\u0022id\u0022:\u00225b\u0022},{\u0022id\u0022:\u00225c\u0022},{\u0022id\u0022:\u00225d\u0022},{\u0022id\u0022:\u00225e\u0022},{\u0022id\u0022:\u00225f\u0022},{\u0022id\u0022:\u002260\u0022},{\u0022id\u0022:\u002261\u0022},{\u0022id\u0022:\u002262\u0022},{\u0022id\u0022:\u002263\u0022}];\r\nvar reverse_obj = pre_sorted_obj.reverse();\r\nvar shuffled_obj = shuffle_arr(pre_sorted_obj);\r\n\r\nvar obj_sorter = (a,b) =\u003E {\r\n if (a.id \u003C b.id) {\r\n return -1;\r\n }\r\n if (a.id \u003E b.id) {\r\n return 1;\r\n }\r\n return 0;\r\n}","TestCases":[{"Name":"pre sorted int","Code":"const sorted = pre_sorted_int.sort();","IsDeferred":false},{"Name":"reverse int","Code":"const sorted = reverse_int.sort();","IsDeferred":false},{"Name":"shuffled int","Code":"const sorted = shuffled_int.sort()","IsDeferred":false},{"Name":"pre sorted obj","Code":"const sorted = pre_sorted_obj.sort(obj_sorter);","IsDeferred":false},{"Name":"reverse obj","Code":"const sorted = reverse_obj.sort(obj_sorter);","IsDeferred":false},{"Name":"shuffled obj","Code":"const sorted = shuffled_obj.sort(obj_sorter);","IsDeferred":false}]}