By default, posts are sorted by the date published.
Paste the code below into your theme’s functions.php file to order the posts differently
//order custom post type posts list in admin
function posts_for_current_author($query) {
if($query->is_admin) {
if ($query->get('post_type') == 'members') //custom post type
{
$query->set('orderby', 'title'); //order by this column
$query->set('order', 'ASC');
}
}
return $query;
}
add_filter('pre_get_posts', 'posts_for_current_author');