diff --git a/docs/_docs/collections.md b/docs/_docs/collections.md index 7701570d..67b80c3e 100644 --- a/docs/_docs/collections.md +++ b/docs/_docs/collections.md @@ -129,7 +129,9 @@ help you control the output url for the entire collection. ## Custom Sorting of Documents -By default, documents in a collection are sorted by their paths. But you can control this sorting via the collection's metadata. +By default, two documents in a collection are sorted by their `date` attribute when both of them have the `date` key in their front matter. However, if either or both documents do not have the `date` key in their front matter, they are sorted by their respective paths. + +You can control this sorting via the collection's metadata. ### Sort By Front Matter Key