complete question 3 shop sorting