fork download
  1. <?php
  2. $array = [
  3. "2014-03-08 16:37:47" => ["fecha", "objeto_id" => "Juan", "autor_id" => 1],
  4. "2014-03-12 16:37:47" => ["fecha", "objeto_id" => "Luis", "autor_id" => 2],
  5. "2014-03-10 16:37:47" => ["fecha", "objeto_id" => "María", "autor_id" => 3]
  6. ];
  7.  
  8. ksort($array);
  9. print_r($array);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Array
(
    [2014-03-08 16:37:47] => Array
        (
            [0] => fecha
            [objeto_id] => Juan
            [autor_id] => 1
        )

    [2014-03-10 16:37:47] => Array
        (
            [0] => fecha
            [objeto_id] => María
            [autor_id] => 3
        )

    [2014-03-12 16:37:47] => Array
        (
            [0] => fecha
            [objeto_id] => Luis
            [autor_id] => 2
        )

)