I have $start_year = get_sub_field('experience_start_year');
, which will produce a year for me. I need to organize all the fields in my repeater by $start_year
. Sure I can drag around the fields in the back-end and organize them there, I’m just trying to idiot proof it so that if a user fails to do so, on the front-end, it’s still organized properly.
Is this possible?
https://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/, but I’m going to tell you that I don’t completely understand some of what’s on that page. I prefer to avoid using repeater fields when what’s in them needs to be sorted in a specific way.