If you have a list of curves called curves
, you can sort these by length in place like so:
curves.sort(key = lambda crv: crv.GetLength())
1 Like
If you have a list of curves called curves
, you can sort these by length in place like so:
curves.sort(key = lambda crv: crv.GetLength())