{"ScriptPreparationCode":"var map = new Map([...Array(1000).keys()].map(a =\u003E ([a.toString(), 5])))\r\n\r\nvar options = {\r\n sensitivity: \u0027base\u0027\r\n};\r\n\r\nvar collator = new Intl.Collator(undefined, options);","TestCases":[{"Name":"Using a common object","Code":"[...map.keys()].sort(collator.compare).map(k =\u003E ([k, map.get(k)]))","IsDeferred":false},{"Name":"Using a separate object","Code":"[...map.keys()].sort((a, b) =\u003E {var collator = new Intl.Collator(undefined, options); return collator.compare(a, b)}).map(k =\u003E ([k, map.get(k)]))","IsDeferred":false}]}