$query->orderBy(DB::Raw(‘case when distance is null then 99999999999 else distance end’),‘ASC’);
laravel中orderby时为空字段排在最后面
最新推荐文章于 2023-05-09 01:48:49 发布
$query->orderBy(DB::Raw(‘case when distance is null then 99999999999 else distance end’),‘ASC’);