import { toDate } from "./toDate.js";
function compareAsc(dateLeft, dateRight) {
  const diff = +toDate(dateLeft) - +toDate(dateRight);
  if (diff < 0) return -1;
  else if (diff > 0) return 1;
  return diff;
}
export {
  compareAsc,
  compareAsc as default
};
//# sourceMappingURL=compareAsc.js.map
