function compareLocations(itemA, itemB) {
  return itemA.line - itemB.line || itemA.column - itemB.column
}
Compares the locations of two objects in a source file
@param {Position} itemA The first object
@param {Position} itemB The second object
@returns {number} A value less than 1 if itemA appears before itemB in the source file, greater than 1 if
itemA appears after itemB in the source file, or 0 if itemA and itemB have the same location.