function publishedComparator(aObj, bObj) {
  const aVal = aObj.datePublishedMoment;
  const bVal = bObj.datePublishedMoment;
  if (aVal.isBefore(bVal)) {
    return 1;
  } else if (aVal.isAfter(bVal)) {
    return -1;
  } else {
    return updatedComparator(aObj, bObj);
  }
}
Descending sorting comparator for datePublishedMoment
- if values are equal, it uses updatedComparator

@param {Object} aObj The first object to be compared.
@param {Object} bObj The second object to be compared.
@return {number} -1,0,1.