function playerMatchesComparator(a, b) {
  if (a.combinedId.categoryId != b.combinedId.categoryId)
    return a.combinedId.categoryId - b.combinedId.categoryId;

  return a.position - b.position;
}
/*
 * Compares two match lexicographically by categoryId, position
 */
Compares two match lexicographically by categoryId, position
Compares two match lexicographically by categoryId position
function playerMatchesComparator(a, b) {
  if (a.combinedId.categoryId != b.combinedId.categoryId)
    return a.combinedId.categoryId - b.combinedId.categoryId;
  return a.position - b.position;
}
function playerMatchesComparator ( a , b ) { if ( a . combinedId . categoryId != b . combinedId . categoryId ) return a . combinedId . categoryId - b . combinedId . categoryId ; return a . position - b . position ; }
Compares two match lexicographically by categoryId, position
Compares two match lexicographically by categoryId position