// Order form list table by most recent
add_filter( 'gform_form_list_forms', function( $forms, $search_query, $active, $sort_column, $sort_direction, $trash ) {
if ( ! rgget( 'orderby' ) ) {
usort( $forms, function( $a, $b ) {
return $b->id <=> $a->id;
} );
}
return $forms;
}, 10, 6 );