Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 796b8cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 796b8cc

Please sign in to comment.