Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
Sorting an object of an object by value in typescritpt

I have an object that contains object and need to sort it by count

var obj={
  "error1":{
    "count":45,
    "ids":['123','352']
  },
  "error2":{
    "count":3,
    "ids":['13','2']
  },
  "error3":{
    "count":15,
    "ids":['42','7']
  }
}

I want to sort by count that the result would be

var obj={
   "error2":{
    "count":3,
    "ids":['13','2']
  },
   "error3":{
    "count":15,
    "ids":['42','7']
  },
  "error1":{
    "count":45,
    "ids":['123','352']
  }
}

How can I do that

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!