setter
parent
2182842332
commit
81070e11bf
|
@ -54,7 +54,7 @@ class Dictionary extends Base
|
|||
$order = [];
|
||||
|
||||
if ($lng && $lat) {
|
||||
$field[] = "abs( (IFNULL(lat,0) - {$lng}) * (IFNULL(lng,0) - {$lat}) ) as square";
|
||||
$field[] = "abs( (IFNULL(lat,0) - {$lat}) * (IFNULL(lng,0) - {$lng}) ) as square";
|
||||
$order["square"] = "asc";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue