Grasshopper

algorithmic modeling for Rhino

Hello,

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: 254

Attachments:

Replies to This Discussion

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

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service