Skip to content

Commit bbf0027

Browse files
committed
[processing] Don't sort field names in multi-field input dialog
Field names should always be listed in the order that the layer defines them
1 parent 9984962 commit bbf0027

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/plugins/processing/gui/wrappers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1362,11 +1362,11 @@ def getFields(self):
13621362
elif self.param.dataType() == QgsProcessingParameterField.DateTime:
13631363
fieldTypes = [QVariant.Date, QVariant.Time, QVariant.DateTime]
13641364

1365-
fieldNames = set()
1365+
fieldNames = []
13661366
for field in self._layer.fields():
13671367
if not fieldTypes or field.type() in fieldTypes:
1368-
fieldNames.add(str(field.name()))
1369-
return sorted(list(fieldNames), key=cmp_to_key(locale.strcoll))
1368+
fieldNames.append(str(field.name()))
1369+
return fieldNames
13701370

13711371
def setValue(self, value):
13721372
if self.dialogType in (DIALOG_STANDARD, DIALOG_BATCH):

0 commit comments

Comments
 (0)