Pipes Angular 2: Sort Array of Objects
问题 There are similar questions but none of the answers have done the trick for me, so I would appreciate if you don't mark this as duplicate (unless you refer me to answer question that does solve the issue) I have a Array of Objects result:Array<Object>=[]; which is returned with these values: On my template, I would like to sort the response based on count of 'likes' <tr class *ngFor="let media of (result) | orderBy: 'data.likes.count'"> <td> <img src={{media.data.images.standard_resolution