algorithmic modeling for Rhino


I have a problem sorting midpoints first by y-values and then by x-values (see image) in python language. Sorting by y-value works, however subsequently it doesn't sort at x-value. Could this be depending on the draw direction of the line (from left to right or from right to left). Does somebody has a solution?

Thanks in advance 

Views: 70


Reply to This

Replies to This Discussion

This post/thread might help with the general problem of sorting values by keys in Python.



Search Grasshopper

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service