$query1 = new WP_Query([
    'post_type' => 'people',
    'posts_per_page' => -1,
    'orderby' => 'date',
    'order' => 'ASC',
]);
if ($query1->have_posts()):
while ($query1->have_posts()) :
    $query1->the_post();
?>
    <h2><?php the_title(); ?></h2>
<?php
endwhile;
endif;
?>