hello friends I have an array that looks like this:
array:3 [▼ 0 => array:6 [▼ \"date\" => \"2016-05-31 15:08:33\" 0 => \"31 May 16\"
You can convert to a collection, call the sortBy() and the convert back to an array all on one line.
collection
sortBy()
array
$sortedArr = collect($array)->sortBy('date')->all();