//冒泡排序算法
if sm402 then
wdata[0]:=50;
wdata[1]:=41;
wdata[2]:=23;
wdata[3]:=1;
wdata[4]:=58;
wdata[5]:=77;
wdata[6]:=42;
wdata[7]:=3;
wdata[8]:=9;
wdata[9]:=99;
end_if;
if blabel2 then
for wi:=0 to 9 by 1 do
// wj:=wi 1;
for wj:=wi 1 to 9 by 1 do
if wdata[wi]>wdata[wj] then
wdata1:=wdata[wi];
wdata[wi]:=wdata[wj];
wdata[wj]:=wdata1;
end_if;
end_for;
end_for;
end_if;