add_filter( 'mgl_sort', 'my_mgl_sort', 25, 3 ); function my_mgl_sort( $ids, $data, $atts ) { return array_reverse( $ids ); }