$pageCurr = I('p',1);
$start = ($pageCurr-1) * self::PAGE_RECORD_SCAN;
$sort = I('sort');
$dataSet = array();
$tmpDate = array();
for($i=0;$i<100;$i++){
$date = date('Y-m-d',strtotime('-'.rand(1,40).' days '.date('Y-m-d')));
$tmpDate[] = $date;
$dataSet[] = array('id'=>$i+1,'passwd'=>'fdsfdsfdsfd','mac'=>'mymac','date'=>$date);
}
stristr($sort, 'desc')===false ? array_multisort($tmpDate,SORT_ASC,$dataSet) : array_multisort($tmpDate,SORT_DESC,$dataSet);
$result = array('status'=>0,'data'=>array('numfound'=>count($dataSet),'list'=>array_slice($dataSet, $start,self::PAGE_RECORD_SCAN)));
$list = $result['data']['list'];