{"ScriptPreparationCode":"var test = [{\u0022value\u0022:\u002297535676-acbb-41f4-b8ea-91e8e5e3fc0d\u0022,\u0022label\u0022:\u0022Overview\u0022},{\u0022value\u0022:\u0022f1e5845d-b5a4-4725-9813-f601eaed6826\u0022,\u0022label\u0022:\u0022test 1\u0022},{\u0022value\u0022:\u0022056d7e5a-b947-4c10-8b38-13416deebe4a\u0022,\u0022label\u0022:\u0022Announcements\u0022},{\u0022value\u0022:\u002218149d83-8191-4c60-afca-d976f6f63ca5\u0022,\u0022label\u0022:\u0022Browse buttons\u0022},{\u0022value\u0022:\u002220b145fa-14ae-457c-9fec-04fdd48ddba2\u0022,\u0022label\u0022:\u0022ztest\u0022},{\u0022value\u0022:\u002200142552-9bf6-49a8-829d-152d8448ac5f\u0022,\u0022label\u0022:\u0022Watson News\u0022},{\u0022value\u0022:\u0022578695c6-4e4c-4c8d-ba8a-2ede7b6abd19\u0022,\u0022label\u0022:\u0022Filtered\u0022},{\u0022value\u0022:\u00226b6fef15-a13e-423b-875d-7700737dccf4\u0022,\u0022label\u0022:\u0022Curated\u0022}]","TestCases":[{"Name":"lodash","Code":"_.sortBy(test, [\r\nname =\u003E {\r\nconst priority = [\u0027overview\u0027];\r\nif (_.includes(priority, name)) {\r\nreturn _.indexOf(priority, name);\r\n} else {\r\nreturn name.length;\r\n}\r\n},\r\nname =\u003E name,\r\n]);","IsDeferred":false},{"Name":"JS","Code":"test.sort(function(a, b) {\r\n const valueA = a.label.toUpperCase();\r\n const valueB = b.label.toUpperCase();\r\n if (valueB === \u0027OVERVIEW\u0027) {\r\n return 1;\r\n } else if (valueA === \u0027OVERVIEW\u0027) {\r\n return -1;\r\n }\r\n return valueA \u003C valueB ? -1 : valueA \u003E valueB ? 1 : 0;\r\n });","IsDeferred":false}]}