"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const toDate = require("./toDate.cjs");
function compareAsc(dateLeft, dateRight) {
  const diff = +toDate.toDate(dateLeft) - +toDate.toDate(dateRight);
  if (diff < 0) return -1;
  else if (diff > 0) return 1;
  return diff;
}
exports.compareAsc = compareAsc;
exports.default = compareAsc;
//# sourceMappingURL=compareAsc.cjs.map
