What is the fastest way to sort an array of whole integers bigger than 0 and less than 100000 in Python? But not using the built in functions like sort.
Im looking at th
def sort(l): p = 0 while(pl[p+1]): l[p],l[p+1] = l[p+1],l[p] if(not(p==0)): p = p-1 else: p += 1 return l
this is a algorithm that I created but is really fast. just do sort(l) l being the list that you want to sort.