title: Sorting Product by names in POS (js)
body: <p>How do I sort my product names in POS product list?
  Here's my code, which says names.sort() is not a function.
  In js file</p>
  
  <pre><code>for(var i = 0, len = this.product_list.length; i &lt; len; i++)
  {
      var product_node = this.render_product(this.product_list[i]);
      var names = this.product_list[i].display_name
      var sorted_names = names.sort();
      console.log('Sorted Names',sorted_names)
  }
  </code></pre>