diff --git a/docs/content/4.api/2.composables/1.query-content.md b/docs/content/4.api/2.composables/1.query-content.md index 647fe8b11..81f6b26aa 100644 --- a/docs/content/4.api/2.composables/1.query-content.md +++ b/docs/content/4.api/2.composables/1.query-content.md @@ -64,12 +64,12 @@ const articles = await queryContent('articles') // Sort by title ascending first then sort by category descending const articles = await queryContent('articles') - .sort({ title: 1, category: 0 }) + .sort({ title: 1, category: -1 }) .find() // OR const articles = await queryContent('articles') .sort({ title: 1 }) - .sort({ category: 0 }) + .sort({ category: -1 }) .find() // Sort by nested field