This example will use the get_posts function to load all the ‘events’ posts ordered by a custom field value of ‘my_acf_field’.
you can using like this, where I added ‘my_acf_field‘ you can place with your ACF field name.
<?php
// get posts
$posts = get_posts(array(
'post_type' => 'event', // Post Type Name
'posts_per_page' => -1, // '-1' display all post, if you write '2'
then display only 2 post.
'meta_key' => 'my_acf_field',
'orderby' => 'meta_value', // get my_acf_field stored value
'order' => 'DESC' // you can set your order type here!
));
if( $posts ): ?>
<ul>
<?php foreach( $posts as $post ):
setup_postdata( $post )
?>
/* write your code here */
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?> (date: <?php the_field('start_date'); ?>)</a>
/* 'start_date' is another field name of ACF */
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>