Time Complexity Of Sort Function In Python 3