Non-purchased products in shopping lists are sorted by color. The color groups go in the same order you can see the colors in the color panel, when you add or edit a product.
Within each color group products are sorted alphabetically. Like this:
Hint: if you do not want to group your products by colors and would like them always to be sorted alphabetically in your lists and products dictionary, you can assign them all to the same color group.
The product, that you've just tapped as purchased, is shifted to the beginning of the bottom part until you close or minimize the app. The rest of the crossed-out products are sorted aplphabetically.