function ArgumentPluginBase::summary_sort

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::summary_sort()
ArgumentPluginBase::default_summary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Default action: summary.

File

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

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

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