Does python use the same sorting method in all cases? For example, a few cases:
s = "some text here"
l = ["some", "items", "here"]
sorted(s)
sorted(l)
sorted(s, key=lambda x: ord('l')-ord(x))
l.sort()
Is it always the same? If so, which algorithm(s) is used for the above?