API Design · Middle · Question 15 of 75
What's important for a cursor-paginated list's sort order?
- 1It must always be alphabetical
- ✓Correct answer: It must be deterministic, e.g. sort by
createdAtthenidas a tiebreaker, so the cursor marks an exact position - 3It can be random
Explanation
Without a unique tiebreaker, items with equal timestamps can be skipped or repeated across pages.