結果 : python sort typeerror nonetype object is not subscriptable