Home › Forums › ACF PRO › Choosing when to sort repeater fields. › Reply To: Choosing when to sort repeater fields.
I’m not sure wether you’re asking if you can select when to do specific sorting or IF you can reverse the sorting?
In the example this is used:
array_multisort( $order, SORT_DESC, $value );
so to sort the other way around you could do
array_multisort( $order, SORT_ASC, $value );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.