title: Woocommerce Widget Product order by title
body: <p>My initial goal is to be able to display Woocommerce Products in the sidebar, <strong>sorted by Title</strong>. Currently the only sorting options in this widget are <em>Date, Price, Random and Sales.</em></p>
  
  <p>I was able to add the Title sorting option in 2 parts in <strong>class-wc-widget-products.php</strong>:</p>
  
  <pre><code>'orderby' =&gt; array(
                  'type'  =&gt; 'select',
                  'std'   =&gt; 'date',
                  'label' =&gt; __( 'Order by', 'woocommerce' ),
                  'options' =&gt; array(
                      'title'   =&gt; __( 'Title', 'woocommerce' ),
                      'date'   =&gt; __( 'Date', 'woocommerce' ),
                      'price'  =&gt; __( 'Price', 'woocommerce' ),
                      'rand'   =&gt; __( 'Random', 'woocommerce' ),
                      'sales'  =&gt; __( 'Sales', 'woocommerce' ),
                  ),
  </code></pre>
  
  <p>And here:</p>
  
  <pre><code>switch ( $orderby ) {
      case 'title' :
          $query_args['orderby']  = 'title';
          break;
      case 'price' :
          $query_args['meta_key'] = '_price';
          $query_args['orderby']  = 'meta_value_num';
          break;
      case 'rand' :
          $query_args['orderby']  = 'rand';
          break;
      case 'sales' :
          $query_args['meta_key'] = 'total_sales';
          $query_args['orderby']  = 'meta_value_num';
          break;
      default :
          $query_args['orderby']  = 'date';
  }
  </code></pre>
  
  <p>This customization works fine, but:</p>
  
  <p><strong>My question:</strong> where should I save this customized "<code>class-wc-widget-products.php</code>" file preventing it from being overwritten at the next Woocommerce update? <br>
  <strong>OR...</strong> is there a more elegant way to accomplish this? Thank You!</p>