uasort($PLACEMARKS, function($a, $b){ $a=$a["YEAR"];$b=$b["YEAR"]; return ($a==$b) ? 0 :(($a>$b) ? 1:-1 ) });