def s1(list1):
for i in range(len(list1)-1):
for j in range(len(list1)-i):
if list1[i]>list1[i+j]:
list1[i],list1[i+j]=list1[i+j],list1[i]
print list1
if u don't want to see process then indent print,I am not so sure about code,try it on various lists.but atmost it's true.