You are here

public function GeofieldProximityField::clickSort in Geofield 8

Adds an ORDER BY clause to the query for click sort columns.

Parameters

string $order: Either ASC or DESC

Overrides FieldPluginBase::clickSort

File

src/Plugin/views/field/GeofieldProximityField.php, line 159

Class

GeofieldProximityField
Field handler to render a Geofield proximity in Views.

Namespace

Drupal\geofield\Plugin\views\field

Code

public function clickSort($order) {
  $this
    ->addQueryOrderBy($order);
}