Sort event order alphabetically in The Events Calendar

Sort event order alphabetically in The Events Calendar on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter(
  'tribe_events_views_v2_view_list_repository_args',
  function ( $args ) {
    $args['orderby'] = 'title';
    $args['order'] = 'ASC';
 
    return $args;
  }
);