{Feature Request} Sort shopping list by both store and product group at the same time
I'm looking for a clean solution for sorting the shopping list by both store and product group at the same time while using the android app. Specifically in shopping mode I want to see my list grouped by store and by product group in the store.
Currently I can only switch between sorting by default store or by the product group. One option may be to allow filtering so I can choose which stores to see and only see one store or one store and those items without a default store, but still have them grouped by product group. Something like this would probably be the most helpful.
Hi again! Just wanted to clarify my original suggestion a bit more:
Current behavior: In shopping mode, we can sort the list by either store or product group, but not both together.
What would help:
- Option 1: Sort by store → product group so I can shop efficiently by store and aisle(product group).
- Option 2: Filter to show a single store + unassigned items, then sort by product group. This is helpful when shopping at one store but also picking up flexible items.
Example Kotlin logic:
list.sortedWith(
compareBy<ShoppingListItem> { it.storeId ?: 0 }
.thenBy { it.productGroupId ?: 0 }
)
Honestly I had ChatGPT help refine the idea, so I don't know if that is helpful, but it was my intent to make it more helpful because I don't really have this kind of coding experience. Thanks again for all your work on the app—it's a great tool!
Sorry, didn't mean to close, please reopen