Skip to content

Commit 796b8cc

Browse files
authoredJan 12, 2018
sort 10 sample / all unique values list in the expression builder widget (#6045)
1 parent 0dda6e7 commit 796b8cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gui/qgsexpressionbuilderwidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ void QgsExpressionBuilderWidget::fillFieldValues( const QString &fieldName, int
349349
return;
350350

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

0 commit comments

Comments
 (0)
Please sign in to comment.