A SnippetClub member asked how we can sort posts by an ACF field date using the Advanced Query
in the Oxygen repeater.
1. Add query options
meta_key
–{YOUR ACF FIELD}
orderby
–meta_value_num
order
–ASC
(This will sort by oldest first)
My ACF field was called date
in my example below
![screenshot 2022 11 04 at 18.10.20](https://snippetclub.com/wp-content/uploads/2022/11/screenshot-2022-11-04-at-18.10.20-1024x935.png)
2. Example
Using the query above, it sorts the different posts by ACF date.
![screenshot 2022 11 04 at 18.12.33](https://snippetclub.com/wp-content/uploads/2022/11/screenshot-2022-11-04-at-18.12.33-1024x379.png)