-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #596 from contao-community-alliance/hotfix/add_sor…
…ting_filteritems Add sorting filteritems
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
*/ | ||
|
@@ -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(); | ||
|
||
|