I was trying to write my own sort function instead of using sort(). The result I am getting is not what I expected. Can anybody see why?
sort()
def my_s