public void sort(){
  String[] str=getListAsArray();
  Arrays.sort(str);
  bList.removeAllElements();
  add(str);
  hasChanged=true;
}

public void sort ( ) { String [ ] str = getListAsArray ( ) ; Arrays . sort ( str ) ; bList . removeAllElements ( ) ; add ( str ) ; hasChanged = true ; }
ensure that the list is alphabetically sorted .
