Commit 5c59289a authored by 劉冠偉's avatar 劉冠偉

検索結果:年代順の次にfcode順で配列

parent 644774cb
......@@ -62,6 +62,7 @@ class SearchController extends Controller
break;
}
// dd($charID);
$temp->fcode = $fcode;
$temp->chisechar=$book.'='.$charID;
$temp->hngcard=$fcode.'-'.$cardnum;
$temp->date_order=$date_order[$book];
......@@ -82,9 +83,11 @@ class SearchController extends Controller
foreach ($type as $kk => $vv) {
$date[$kk] = $vv[0]->date_order;
$fcode_order[$kk]= $vv[0]->fcode;
}
array_multisort($date, SORT_ASC, $type);
array_multisort($date, $fcode_order, SORT_ASC, $type);
$date=[];
$fcode_order=[];
$results[$key]=$type;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment