list.add(person);
}
PersonListSort.sort(list);
// Links angew�hlte Person holen.
Person choice = listLeftPersons.get(listLeft.getSelectionIndex());
String choiceName = " " + choice.getValueView(Person.NAME) + " ";
String lowerChoice = choiceName.toLowerCase();
// TODO - Die �hnlichsten Personen rechts nach oben schieben.
// Identische Namen nach oben.
int listsize = list.size();
for (int i = 0; i < listsize; i++) {
Person person = list.get(i);
boolean bUp = true;
String fullname = person.getValueView(Person.NAME).toLowerCase();
StringTokenizer strtok = new StringTokenizer(fullname);
while (strtok.hasMoreTokens()) {
String partname = strtok.nextToken();
bUp &= lowerChoice.indexOf(" " + partname + " ") >= 0;
}
if (bUp) {
list.add(0, list.remove(i));
}
}
// Personen in rechte Liste eintragen.
for (Person person : list) {
listRight.add(person.toString());
}
rightPersonList = list;
}