import { useMemo as u } from "react";
import { SortDirection as c } from "../../utils/SortUtils.js";
function p(o, r, n) {
  return u(() => r === "none" ? o : [...o].sort((e, m) => {
    const t = n(e), i = n(m);
    return r === c.ASCENDING ? t - i : i - t;
  }), [o, r, n]);
}
export {
  p as useSortedBars
};
//# sourceMappingURL=useSortedBars.js.map
