Skip to content

Commit 15a2485

Browse files
clarify requirements for sorting string dates
1 parent 9bb4422 commit 15a2485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learn/filtering_and_sorting/working_with_dates.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, you will learn about Meilisearch's approach to date and time valu
1414

1515
## Preparing your documents
1616

17-
To filter and sort search results chronologically, your documents must have at least one field containing either a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time) or a date in a human readable format such as `"2025-01-13"`.
17+
To filter and sort search results chronologically, your documents must have at least one field containing a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time). You may also use a string with a date in a format that can be sorted lexicographically, such as `"2025-01-13"`.
1818

1919
As an example, consider a database of video games. In this dataset, the release year is formatted as a timestamp:
2020

0 commit comments

Comments
 (0)