list=RandomSample[Range[10],10]

Do[If[list[[i]]>list[[j]],list[[{i,j}]]=list[[{j,i}]]],{i,Length[list]},{j,i+1,Length[list]}];list