diff --git a/admin/woocommerce-admin-reports.php b/admin/woocommerce-admin-reports.php index 07acbf9f22b..41cbe470b19 100644 --- a/admin/woocommerce-admin-reports.php +++ b/admin/woocommerce-admin-reports.php @@ -1918,7 +1918,7 @@ function woocommerce_category_sales() { $current_year = isset( $_POST['show_year'] ) ? $_POST['show_year'] : date( 'Y', current_time( 'timestamp' ) ); $start_date = strtotime( $current_year . '0101' ); - $categories = get_terms( 'product_cat', array( 'parent' => 0 ) ); + $categories = get_terms( 'product_cat', array( 'orderby' => 'name' ) ); ?>