API Design · Middle · Question 57 of 75
Why should list responses have a stable default sort order?
- 1Sorting makes responses smaller
- ✓Correct answer: Without one, the database may return rows in different orders, breaking pagination and confusing clients
- 3HTTP requires sorted lists
Explanation
A default like newest first (with an ID tiebreaker) keeps results predictable.