Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created July 30, 2021 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/54f102d46622a1c20af9f0958c8599f1 to your computer and use it in GitHub Desktop.
Save chuongmep/54f102d46622a1c20af9f0958c8599f1 to your computer and use it in GitHub Desktop.
import clr
input = IN[0]
result = []
def sortbyZXY(point):
point.sort(key = lambda points: (point.Z, point.X, point.Y))
return points
for i in input:
result.append(sortbyZXY(i))
OUT = result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment