Reshma Bhalekar

Reshma Bhalekar

  • NA
  • 1.1k
  • 498.7k

How to sort array using java script or jQuery?

Mar 15 2018 3:01 AM
Hi,
 
I have array like below and I wants to sort it based on birthdate of that user.
 
var employees=[];
 
and after rest api call I have pushed data into employees array and I now I wants to sort it based on bdate
 
{name: "AAA", month: "Mar", bdate: "25"}
{name: "BBB", month: "Mar", bdate: "10"}
{name: "EEE", month: "Mar", bdate: "28"}
{name: "HHH", month: "Mar", bdate: "3"}
{name: "QQQ", month: "Mar", bdate: "8"}
 
Please help..

Answers (8)