This is my array
$array = array(
"13111" => "2014-06-21 19:51:00.0000000",
"23111" => "2014-06-20 19:51:00.0000000",
"12111" => "2014-06-21 19:51:00.0000000",
"23311" => "2014-06-22 19:51:00.0000000",
"13114" => "2014-06-21 19:51:00.0000000",
"23711" => "2014-06-20 19:51:00.0000000",
);
How can i get first 3 elements of my array and how can i sort by datetime? thanks