Skip to content

Commit ac6d251

Browse files
signedavm-kuhn
authored andcommitted
sort the values in query builder
after filling the values into the model, they are sorted ascending.
1 parent 8ec16e2 commit ac6d251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/qgsquerybuilder.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ void QgsQueryBuilder::fillValues( int idx, int limit )
159159
mModelValues->insertRow( mModelValues->rowCount(), myItem );
160160
QgsDebugMsg( QString( "Value is null: %1\nvalue: %2" ).arg( var.isNull() ).arg( var.isNull() ? nullValue : var.toString() ) );
161161
}
162+
mModelValues->sort( 0 );
162163
}
163164

164165
void QgsQueryBuilder::btnSampleValues_clicked()

0 commit comments

Comments
 (0)