{"ScriptPreparationCode":"var a = \u0027a200bcd32efg9\u0027;\r\nvar b = \u0027a200bcd32efg11\u0027;\r\n\r\nvar comparator = { locale: null, collator: null };\r\nvar numericComparator = { locale: null, collator: null };\r\nvar baseComparator = { locale: null, collator: null };\r\n\r\nvar localeCompare = (a, b, locale) =\u003E {\r\n if (!comparator.collator || comparator.locale !== locale) {\r\n comparator.locale = locale;\r\n comparator.collator = new Intl.Collator(locale);\r\n }\r\n\r\n return comparator.collator.compare(a, b);\r\n};\r\n\r\nvar localeCompareNumeric = (a, b, locale) =\u003E {\r\n if (!numericComparator.collator || numericComparator.locale !== locale) {\r\n numericComparator.locale = locale;\r\n numericComparator.collator = new Intl.Collator(locale, {\r\n numeric: true,\r\n });\r\n }\r\n\r\n return numericComparator.collator.compare(a, b);\r\n};\r\n\r\nvar localeCompareBase = (a, b, locale) =\u003E {\r\n if (!baseComparator.collator || baseComparator.locale !== locale) {\r\n baseComparator.locale = locale;\r\n baseComparator.collator = new Intl.Collator(locale, {\r\n sensitivity: \u0027base\u0027,\r\n });\r\n }\r\n\r\n return baseComparator.collator.compare(a, b);\r\n};","TestCases":[{"Name":"localeCompare","Code":"localeCompare(a, b, \u0027en-US\u0027);","IsDeferred":false},{"Name":"localeCompareNumeric","Code":"localeCompareNumeric(a, b, \u0027en-US\u0027);","IsDeferred":false},{"Name":"localeCompareBase","Code":"localeCompareBase(a, b, \u0027en-US\u0027);","IsDeferred":false}]}