public function ArgumentPluginBase::summarySort

Sorts the summary based upon the user's selection. The base variant of this is usually adequte.

Parameters

$order: The order selected in the UI.

1 call to ArgumentPluginBase::summarySort()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 875
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

public function summarySort($order, $by = NULL) {
  $this->query
    ->addOrderBy(NULL, NULL, $order, !empty($by) ? $by : $this->name_alias);
}