Skip to content

Unable to Sort Entire Poetry Collection by Likes Count with Pagination in Convex. #2

@akadeepesh

Description

@akadeepesh

Currently, when fetching poetries with pagination (5 items per page), each page is sorted independently by likes count. This results in an incorrectly sorted overall collection.

Desired Behavior: Sort the entire collection of poetries by likes count, then apply pagination to fetch 5 items at a time.

Question: How can we modify the Convex query to sort all poetries by likes count before applying pagination?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions