Sunday, 15 January 2017

javascript - How to sort object array based on key in typescript

I have a candidate object with properties



candidateid:number;

name:string;


I wish to sort an array of such objects based on the name property. How can I achieve this in TypeScript in angular 2?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...