Sort custom post type archive alphabetically

function change_investors_order( $vars ) {
if ( isset($vars[‘post_type’]) && $vars[‘post_type’] == ‘investors’ ) {
$vars[‘orderby’] = ‘title’;
$vars[‘order’] = ‘ASC’; // you probably don’t need this because that’s the default behaviour
}

return $vars;
}
add_filter( ‘request’, ‘change_investors_order’);