I have array responsive and I want to sort my array based on the breakpoint variable in the object inside the responsive array. How can I do it?
var responsive = [
{
breakpoint: 1200,
settings: {
c: 300
}
},
{
breakpoint: 780,
settings: {
c: 180
}
},
{
breakpoint: 1400,
settings: {
c: 0
}
}
];
I tried responsive.sort() but still not working? How can I do it?