docs: function compareDates(a, b) {
      var aTimestamp = convertToTimestamp(a);
      var bTimestamp = convertToTimestamp(b);
  
      if (isNaN(aTimestamp) || isNaN(bTimestamp)) {
        return NaN;
      } else {
        return aTimestamp - bTimestamp;
      }
    }