Code has been added to clipboard!

Containing Objects in JavaScript Sort Array

Example
var car = [
  { type: "Audi", year: 2017 },
  { type: "Toyota", year: 2009 },
  { type: "Mercedes", year: 2011 },
];