code: function _sort(a,b) {
      if (a.weight < b.weight) {
        return 1;
      }
      else if (a.weight > b.weight) {
        return -1;
      }
      else {
        return 0;
      }
    }
docs: Sort the Graph Stops by transfer weight (descending)
  @private