import { $ } from "./context-BfHy4NgG.es.js";
let t = /* @__PURE__ */ new Map();
function b(a) {
  let { locale: r } = $(), e = r + (a ? Object.entries(a).sort((f, l) => f[0] < l[0] ? -1 : 1).join() : "");
  if (t.has(e)) return t.get(e);
  let c = new Intl.Collator(r, a);
  return t.set(e, c), c;
}
export {
  b as $
};
//# sourceMappingURL=useCollator-DKdD8vEj.es.js.map
