What decides the order of the items in your profile?
The shop is on a number system. Every item has a numerical identifier. If I renumber anything, all the items in your profile will break. When I started, I only mentally reserved 10 slots for each category. That's why most similar items are grouped together.
For example, animals were originally 10-19. When I added more, I then mentally reserved 100-199 since animals were category 1.
The items in your profile are arranged by number. So, animal 11 will appear at the beginning and animal 101 will appear closer to the end.
Secret items such as: the dice award, the MotM badge, and the staff badge have IDs that are random and over 1,000. So, they always appear at the end.