7ec33196

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Deduplicate grocery list view-model shaping (#22)

Extract one shared helper for splitting and sorting grocery vs cart items.

This prevents drift between index and list fragment rendering paths and simplifies future sorting changes.

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/22
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>
configuredevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-trailing-newlinecheck-trailing-whitespacedefaulte2e-testsgo-testsgrosireegrosiree-devlint-sqlx86_64-linux