Python Array Sort Time Complexity In Python How To Assign