sort method in angular 6 code example Example: array sort in angular 6 Click to copyarray.sort((a,b) => a.title.rendered.localeCompare(b.title.rendered));