Попробуйте следующее, сделав нас функцией array_multisort ():
<?php // Get repeater value
$repeater = get_field('sign_up', 'options');
// Obtain list of columns
foreach ($repeater as $key => $row) {
$the_name[$key] = $row['your_name'];
}
// Sort the data by name column, ascending
array_multisort($the_name, SORT_ASC, $repeater);?>
<?php if($repeater): ?>
<ul>
<?php while(has_sub_field('sign_up', 'options')): ?>
<?php foreach( $repeater as $row ) { // Display newly orded columns ?>
<li><?php echo $row['your_name'];?></li>
<?php } ?>
<?php endwhile; ?>
</ul>
<?php endif;?>