Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #15481: custom field values sort order in view all page filter
Commit b5abce1 introduced a regression in the sort order of custom field values because the query retrieving the custom field values was rewritten with a SELECT DISTINCT instead of using a GROUP BY clause. With MySQL, group by sorts the results, whereas distinct does not (not tested with other RDBMS). This fixes the issue by adding an ORDER BY clause.
- Loading branch information