Filter latest post type query in XML index sitemap

Since SEOPress 2.4

function sp_sitemaps_index_cpt_query($args, $cpt_key) {
//Default Query  
//$args = array('post_type' => $cpt_key, 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => 1, 'meta_key' => '_seopress_robots_index', 'meta_value' => 'yes', 'meta_compare' => 'NOT EXISTS', 'order' => 'DESC', 'orderby' => 'modified', 'lang' => '');
    $args['orderby'] = 'date';
    return $args;
}
add_filter('seopress_sitemaps_index_cpt_query', 'sp_sitemaps_index_cpt_query', 10, 2);