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
for(var i = 0, len = this.product_list.length; i < 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)
}