Trying to sort an object with some data depending on a number inside of it
For example:
var object = {
sort: 15,
name: "Value 2"
},
{
sort: 10,
name: "Value 1"
}
etc.
So I basically want to sort the object here by the 'sort' value inside of it. Is there an easy way to do this?
Thanks!