pre_get_posts memesan berdasarkan judul

if( $query->is_main_query() && $query->is_post_type_archive('ebooks') ) {
    $query->set( 'orderby', 'title' );
    $query->set( 'order', 'ASC' );
    $query->set( 'posts_per_page', 50 );
}
Pepiño