Python. Sort list by length of curves


Hello. How to sort list by length of curves

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