Skip to content
Permalink
Browse files

sort 10 sample / all unique values list in the expression builder wid…

…get (#6045)
  • Loading branch information
nirvn committed Jan 12, 2018
1 parent 0dda6e7 commit 796b8cca57b0d6c6f135036d04a71d89dfc22fd2
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsexpressionbuilderwidget.cpp
@@ -349,7 +349,8 @@ void QgsExpressionBuilderWidget::fillFieldValues( const QString &fieldName, int
return;

QStringList strValues;
QSet<QVariant> values = mLayer->uniqueValues( fieldIndex, countLimit );
QList<QVariant> values = mLayer->uniqueValues( fieldIndex, countLimit ).toList();
std::sort( values.begin(), values.end() );
Q_FOREACH ( const QVariant &value, values )
{
QString strValue;

0 comments on commit 796b8cc

Please sign in to comment.
You can’t perform that action at this time.