Javascript – Sort by date for an array of objects with each object containing arrays of dates
Given an array of countries with offices opened, how do I sort the array in order from the earliest date recorded to the latest date recorded? The original array is countriesList = [ { country: 'USA', officeOpened: [ {date: '2016-04-01',…