- print_r: documentation ( source)
- strtotime: documentation ( source)
- usort: documentation ( source)
<?php
$arr = [['11-01-2012', 1], ['01-01-2014', 2], ['01-01-2015', 3], ['09-02-2013', 4], ['01-01-2013', 5]];
function date_sort($a, $b) {
return strtotime($a[0]) - strtotime($b[0]);
}
usort($arr, "date_sort");
print_r($arr);