added sort function to shopping