title: How to order woocommerce upsell products by name?
body: <p>I find something after I ask this question in up-sell.php (in code below) if I changed second $orderby to anything up-sell items get in order by name but in reverse. For example they get in order like "product 2" then "product 1". So I need to reverse this code somehow. Thanks again.</p>
  
  <pre><code>$meta_query = WC()-&gt;query-&gt;get_meta_query();
  
  $args = array(
      'post_type'           =&gt; 'product',
      'ignore_sticky_posts' =&gt; 1,
      'no_found_rows'       =&gt; 1,
      'posts_per_page'      =&gt; $posts_per_page,
      'orderby'             =&gt; $orderby,
      'post__in'            =&gt; $upsells,
      'post__not_in'        =&gt; array( $product-&gt;id ),
      'meta_query'          =&gt; $meta_query
  );
  </code></pre>
  
  <p>Hi I put upsell product for every product in Wordpress Woocommerce but upsell products displayed in random order. I want to order them in name like "product 1" and then "product 2" etc... I couldn't find something that does this in google does anybody done this before? Thanks</p>