how to change default sorting in woocommerce 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';
}