I have an array that contains some string and a date,
[
{
date : '25-05-2018',
string : 'foo'
},
{
date : '15-01-2017,
string : 'baz'
},
{
date : '10-07-2018',
string : 'bar'
}
]
I need to sort the array based on the date field. Is there an efficient way to sort this array?
Notice: the array could have +250 rows, and they do not come from a database.