How to sort post using custom query with ACF

				
					add_action( 'elementor/query/sorted_by_date', function( $query ) {

  $query->set( 'meta_key', 'sort_date' );
  $query->set( 'orderby', 'meta_value_num' );
  $query->set( 'order', 'ASC' );

});

/*Add ACF key in the place of sort_data
Add the query in the filter (sorted_by_date)*/