Here is my array of objects:
var arr = [
{name:"Mike", age:17},
{name:"John", age:21},
{name:"Sam", age:32},
{name:"Mark", age:23}
]
For instance I have hundredth of thousands of objects in this array.
What is the fastest way to filter it by age (greatest to least)?
Here is my expected output:
var arr = [
{name:"Sam", age:32},
{name:"Mark", age:23}
{name:"John", age:21},
{name:"Mike", age:17},
]