Compare commits

...

2 Commits

Author SHA1 Message Date
5dff9d627a app/Http/Controllers/RegularContractCreateController.php を更新
All checks were successful
Deploy so-manager (auto) / deploy (push) Successful in 23s
2025-10-07 17:36:50 +09:00
e13302475e Merge pull request '駐輪場検索 並び替え修正' (#44) from main_higashide into main
All checks were successful
Deploy so-manager (auto) / deploy (push) Successful in 24s
Reviewed-on: #44
2025-10-07 17:32:06 +09:00

View File

@ -94,7 +94,7 @@ class RegularContractCreateController extends Controller
$parks_table = $query->get(); $parks_table = $query->get();
if ($sort === 'park_ruby' || $sort === 'station_name_ruby') { if ($sort === 'park_ruby' || $sort === 'station_name_ruby') {
$collator = new \Collator('ja_JP'); $collator = new \Collator('ja');
$parks_table = $parks_table->sort(function ($a, $b) use ($order, $sort, $collator) { $parks_table = $parks_table->sort(function ($a, $b) use ($order, $sort, $collator) {
$a_val = $a->$sort ?? ''; $a_val = $a->$sort ?? '';
$b_val = $b->$sort ?? ''; $b_val = $b->$sort ?? '';