function sortByName(a, b) {
  if (a.name < b.name) {
    return -1;
  }
  if (a.name > b.name) {
    return 1;
  }
  return 0;
}
Sorts array of features by their name
@param {!Object} a
@param {!Object} b