結果 : ascending order in python using if else