Use a = sorted(a, key=lambda x: x.modified, reverse=True) # ^^^^. On Python 2.x, the sorted function takes its arguments in this order:
確定! 回上一頁