Skip to content

Commit

Permalink
[processing] Fix Points to Paths terminates when an order by
Browse files Browse the repository at this point in the history
field is empty
  • Loading branch information
nyalldawson committed Mar 16, 2018
1 parent 6158236 commit 87e8432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/PointsToPaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def processAlgorithm(self, parameters, context, feedback):
if feedback.isCanceled():
break

vertices.sort()
vertices.sort(key=lambda x: (x[0] is None, x[0]))
f = QgsFeature()
attributes = []
if group_field_index >= 0:
Expand Down

0 comments on commit 87e8432

Please sign in to comment.