add_filter('dpdfg_ext_set_query_arguments',function ($query_args,$props){// Only affect the grid with this module classif (empty($props['module_class']) || $props['module_class'] !=='consultants-grid'){return $query_args}// Sort co-founders first (1 before 0),then name$query_args['meta_key']='is_this_a_cofounder';$query_args['orderby']=['meta_value_num'=>'DESC','title'=>'ASC',];// Keep posts that don't have the meta key yet
  $query_args['meta_query'] = [
    'relation' => 'OR',
    [
      'key'     => 'is_this_a_cofounder',
      'compare' => 'EXISTS',
      'type'    => 'NUMERIC',
    ],
    [
      'key'     => 'is_this_a_cofounder',
      'compare' => 'NOT EXISTS',],];return $query_args},10,2);