Sort Arraylist Using Lambda Python For Loop