RhinoList<T>.Sort

Hi,

I am very new to c# scripting and am simply trying to asynchronously sort a list of curves based on their lengths, so that the output is a list of the curves in descending order of length.

I have attached my attempt, but I can’t seem to fix the errors shown. Any help would be appreciated!

Thanks
Sorting Curves.gh (3.5 KB)

Hello,
You can sort using OrderBy.
Sorting Curves.gh (6.3 KB)