Skip to content
Snippets Groups Projects

Sorting ASC the options for the slect filter.

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -158,7 +158,9 @@ class ViewsCsvFilterSelect extends InOperator {
// Ensure the query is of the correct type.
if ($query instanceof ViewsCsvQuery) {
$column_data = $query->getCsvColumnValues($column);
return array_combine($column_data, $column_data);
$options = array_combine($column_data, $column_data);
ksort($options);
return $options;
}
return [];
Loading