Skip to content

Commit

Permalink
Merge pull request #596 from contao-community-alliance/hotfix/add_sor…
Browse files Browse the repository at this point in the history
…ting_filteritems

Add sorting filteritems
  • Loading branch information
zonky2 authored Jan 14, 2023
2 parents dbe2288 + 29010b9 commit 154afd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Data/DefaultDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of contao-community-alliance/dc-general.
*
* (c) 2013-2022 Contao Community Alliance.
* (c) 2013-2023 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -24,7 +24,7 @@
* @author Ingolf Steinhardt <[email protected]>
* @author Richard Henkenjohann <[email protected]>
* @author Alex Wuttke <[email protected]>
* @copyright 2013-2022 Contao Community Alliance.
* @copyright 2013-2023 Contao Community Alliance.
* @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
*/
Expand Down Expand Up @@ -428,6 +428,7 @@ public function getFilterOptions(ConfigInterface $config)
$queryBuilder->select('DISTINCT(' . $property . ')');
$queryBuilder->from($this->source);
DefaultDataProviderDBalUtils::addWhere($internalConfig, $queryBuilder);
$queryBuilder->addOrderBy($property);

$statement = $queryBuilder->executeQuery();

Expand Down

0 comments on commit 154afd9

Please sign in to comment.