{"ScriptPreparationCode":"var elements = Array.from({\r\n length: 5000\r\n}, () =\u003E Math.random())\r\nelements.push(\u0027test\u0027);","TestCases":[{"Name":"Splice","Code":"const index = elements.indexOf(\u0027test\u0027);\r\nconst element = elements.splice(index, 1)[0];\r\nreturn [element, ...elements]","IsDeferred":false},{"Name":"Sort","Code":"return elements.sort((a, b) =\u003E {\r\n if (a === \u0027test\u0027) {\r\n return -1;\r\n } else if (b === \u0027test\u0027) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n });","IsDeferred":false}]}