Ordering defines the report
Without ORDER BY, row order is unspecified. Repeating a query may happen to produce the same rows; that does not establish an ordering guarantee. This lesson does not promise a random reshuffle or claim that ordinary VACUUM must reorder rows.
The real report uses ORDER BY abv DESC, name ASC, id ASC: ABV ranks the beers, name orders tied ABVs, and unique ID resolves remaining ties. A second sort column alone is not enough if its values also tie.
OFFSET skips results produced by the selected plan. Large offsets can require substantial skipped work; this lesson does not measure a full table scan or a universal complexity bound. Keyset pagination is reference for a later lesson and needs the complete sort key, including ties.
Missing values keep their own place
The dedicated fixture contains a real NULL. DESC defaults to NULLS FIRST; ASC defaults to NULLS LAST. Adding DESC NULLS LAST changes placement without inventing a numeric IBU for Mystery Ale. LIMIT 10 on the original table would have shown no NULL example at all.
Did you know?
Each ORDER BY expression has its own direction and NULL-placement rule. A DESC on ABV does not make the following name key descend too. PostgreSQL documentation.