to sort 2-photos