Link to home
Start Free TrialLog in
Avatar of Steve Hougom
Steve HougomFlag for United States of America

asked on

sorting the API response in angular

Hello I have a response object returned from the API that looks like this.  I need to sort this array it by mailCode.  I cant use a pipe in the HTML (lodash etc) i have to do it in the response.  


User generated image

Here is the basic API call.

 getMailCodes(){
    this.profileService.getMailCodes().subscribe(response => {             console.log(response);              this.lookupMailCodes = response;     });   }

Open in new window



ASKER CERTIFIED SOLUTION
Avatar of Steve Hougom
Steve Hougom
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial