{"ScriptPreparationCode":"var a = \u0022FOO (BAR)\u0022;\r\nvar b = \u0022foo bar 2\u0022;\r\nvar locale = \u0022en\u0022;\r\n\r\nvar randomArray = Array(200).fill().map(\r\n () =\u003E Math.random().toString(36).replace(/[^a-z]\u002B/g, \u0027\u0027).substr(0, 30)\r\n)\r\n\r\nvar collator = new Intl.Collator(locale);","TestCases":[{"Name":"check localeCompare","Code":"a.localeCompare(b, locale) === 0","IsDeferred":false},{"Name":"check collator","Code":"collator.compare(a, b) === 0","IsDeferred":false},{"Name":"sort localeCompare","Code":"[...randomArray].sort((a,b) =\u003E a.localeCompare(b, locale))","IsDeferred":false},{"Name":"sort collator","Code":"[...randomArray].sort(collator.compare)","IsDeferred":false}]}