@x = (6,5,8,5,1,4,20); #numeric
@x = sort(@x);
print "@x\n"; #generates: 1 20 4 5 5 6 8
