We are working on updating this book for the latest version. Some content might be out of date.
By default, buckets are ordered by
descending order. This is a
good default because often we want to find the documents that maximize some
criteria: price, population, frequency. But sometimes you’ll want to modify this sort order, and there are a few ways to
do it, depending on the bucket.