Sorting an array of objects with date and time as string in JavaScript
I am creating an array of objects, which looks like let obj = { date: String, time: String, text: String, } The date format is "MM-DD-YYYY" and format of time "HH:MM:SS" I am getting this from an API and can't…