woocommerce default to sort by latest code example
Example: change woocommerce default sort order
add_filter('woocommerce_default_catalog_orderby', 'misha_default_catalog_orderby');
function misha_default_catalog_orderby( $sort_by ) {
return 'date';
}