Skip to content

[Feature] Sort dishes in NoteView: rated first, then by last update date #9

@ryanlinjui

Description

@ryanlinjui

Description

In NoteView's dish list, prioritize dishes that the user has already reviewed/rated, and sort by last update date (most recent first).

Current Behavior

Dishes are displayed in insertion order with no sorting logic.

Expected Behavior

  1. Dishes with a rating (score > 0) appear first
  2. Within each group (rated / unrated), sort by last update date (descending)
  3. Sorting should apply to the display order in DishCardComponent scroll view

Notes

  • DishModel already has a rating field — a dish is considered "reviewed" if rating.score > 0
  • May need to add or utilize an updatedAt timestamp on DishModel if not already present

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions