prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function compareByIdThenRev(a, b) {
  var idCompare = compare(a._id, b._id);
  if (idCompare !== 0) {
    return idCompare;
  }
  var aStart = a._revisions ? a._revisions.start : 0;
  var bStart = b._revisions ? b._revisions.start : 0;
  return compare(aStart, bStart);
}
function compareByIdThenRev(a, b) {
  var idCompare = compare(a._id, b._id);
  if (idCompare !== 0) {
    return idCompare;
  }
  var aStart = a._revisions ? a._revisions.start : 0;
  var bStart = b._revisions ? b._revisions.start : 0;
  return compare(aStart, bStart);
}
function compareByIdThenRev ( a , b ) { var idCompare = compare ( a . _id , b . _id ) ; if ( idCompare !== 0 ) { return idCompare ; } var aStart = a . _revisions ? a . _revisions . start : 0 ; var bStart = b . _revisions ? b . _revisions . start : 0 ; return compare ( aStart , bStart ) ; }
compare two docs, first by _id then by _rev
compare two docs first by _id then by _rev