Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions