SyntaxFix
Write A Post
Hire A Developer
Questions
Not tested but should work
products.sort((a,b)=>a.title.rendered > b.title.rendered)