A shopping list typed as things come to mind sends you back and forth through the whole shop. This list type does the sorting.
Reminders > new list > List Type > Groceries
existing list > Show List Info > List Type > Groceries
Add items one by one and they land under headings such as Produce or Seafood. Walk the shop section by section and tick them off.
If something ends up in the wrong place, drag it to the right section. The list remembers that choice the next time you add the same item, so it gets better as you use it. You can add sections of your own too.
I’d share the list with whoever else does the shopping. Then the milk can be added at home while someone is already in the aisle.
It needs iOS 17 or later and iCloud turned on for Reminders. How well the automatic sorting does depends on the words you use and your device’s language, and unusual or local product names may need a manual move the first time. Brand names are a coin toss. And the order of sections won’t necessarily match your own supermarket, so drag them into your usual walking route once.
Further reading: Create grocery lists in Reminders on your iPhone