Delphi-Quellcode:
var i,j,n:integer;
f:array[0..10]of string;
h:string;
begin
n:=listbox1.Items.Count;
for i:=0 to n-1 do f[i+1]:=listbox1.Items[i];
for i:=1 to n do
for j := 1 to n-1 do
if f[j]>f[i] then
begin
h:=f[i];
f[i]:=f[j];
f[j]:=h;
end;
for i:=0 to n do
begin
listbox2.Items.Add(f[i+1]);
end;
jo das wars danke
mann mann mann is schon ganz schön schwer ^^