public void sortLocations(){
  if (l_locations.isEmpty())   return;
  Collections.sort(l_locations);
  PBLocation fst=l_locations.get(0), loc;
  if (!fst.isType(StringConst.EMPTY)) {
    for (int i=1; i < l_locations.size(); i++) {
      loc=l_locations.get(i);
      if (loc.isType(StringConst.EMPTY)) {
        loc.setType(fst.getType());
        break;
      }
    }
    fst.setType(StringConst.EMPTY);
  }
}

public void sortLocations ( ) { if ( l_locations . isEmpty ( ) ) return ; Collections . sort ( l_locations ) ; PBLocation fst = l_locations . get ( 0 ) , loc ; if ( ! fst . isType ( StringConst . EMPTY ) ) { for ( int i = 1 ; i < l_locations . size ( ) ; i ++ ) { loc = l_locations . get ( i ) ; if ( loc . isType ( StringConst . EMPTY ) ) { loc . setType ( fst . getType ( ) ) ; break ; } } fst . setType ( StringConst . EMPTY ) ; } }
sorts the locations of this argument by their terminal ids and heights .
