Pipes for Sort and Group Arrays and Convert Object in Array
Sort Pipe
this pipe sort an array by property in the inner items,
const items =name:first: 'Ann'last:'Summers'score: '99'name:first: 'John'last:'Nyugen'score: '72'name:first: 'Javier'last:'Trujillo'score: '45'name:first: 'Rose'last:'Jacobs'score: '63'
Only accept String Number and Date
types
the ASC order is implicit, for DESC order use a -
before property name
{{item.name}} - {{item.score}}
you can use nested properties
{{item.name}} - {{item.score}}
OrderBy Pipe
documentation under construction