Mongoose 9.13 adds a defaultSort schema option. Set a model’s query order once, simplify findAndCount() pagination and avoid slow unindexed sorts.