unction comparePosition(a, b) {
  return a && b && a.line == b.line && a.column == b.column;
}

function createLocation({
  sourceId,
  // Line 0 represents no specific line chosen for action
  line = 0,
  column,
  sourceUrl = ""
}) {
  return {
    sourceId,
    line,
    column,
    sourceUrl
  };
}

function sortSelectedLocations(locations, selectedSource) {
  return (0, _lodash.sortBy)(locations, [// Priority: line number, undefined column, column number
  location => (0, _selectedLocation.getSelectedLocation)(location, selectedSource).line, location => {
    const selectedLocation = (0, _selectedLocation.getSelectedLocation)(location, selectedSource);
    return selectedLocation.column === undefined || selectedLocation.column;
  }]);
}PK