Using Sort In Python Time Complexity Checker