我将尝试按日期和时间对 json 格式文件进行排序
我试试这个方法。
    function sortFunction( $a, $b ) {
        return strtotime($a["date"]) - strtotime($b["date"]);
    }
 $inp = file_get_contents('del.json');
$tempArray = json_decode($inp);
usort($tempArray, "sortFunction");
var_dump($tempArray);
删除.json
[{"date":"2013-09-01 00:00:02","content":"1"},{"date":"2013-09-01 00:00:09","content":"5"},{"date":"2013-09-01 00:00:01","content":"3"}]
并且会收到此错误 
Cannot use object of type stdClass as array
在此先感谢!
感谢您的所有评论,我使用此方法及其工作,对不起,我是新手,别呵呵!
   function my_sort($a, $b)
    {
        if ($a->date < $b->date) {
            return -1;
        } else if ($a->date > $b->date) {
            return 1;
        } else {
            return 0; 
        }
    }
    usort($users, 'my_sort');