Docs Menu
Docs Home
/
MongoDB Manual
/ / / /

$natural

$natural

Use in conjunction with cursor.hint() to perform a collection scan to return documents in natural order.

For usage, see Force Collection Scans example in the cursor.hint() reference page.

You can specify a $natural sort when running a find operation against a view.

Back

Miscellaneous