Time Complexity Of Sort In Python