function SortByClocks (a, b, resolveConflict) {
  // Compare the clocks
  const diff = compareClocks(a.clock, b.clock)
  // If the clocks are concurrent, use the provided
  // conflict resolution function to determine which comes first
  return diff === 0 ? resolveConflict(a, b) : diff
}
Sort two entries by their clock time.
@param {Entry} a First entry to compare
@param {Entry} b Second entry to compare
@param {function(a, b)} resolveConflict A function to call if entries are
concurrent (happened at the same time). The function should take in two
entries and return 1 if the first entry should be chosen and -1 if the
second entry should be chosen.
@return {number} 1 if a is greater, -1 if b is greater
@private