Sorted Vs Sort Function In Python