把list下的数据按照distance升序排列 SORT_ASC->升序 SORT_DESC->降序 array_multisort(array_column($list,'distance'),SORT_ASC,$list); 效果如图