Sorting items in a branch using GHPython


I have a tree with lists of float values at each branch. I am trying to sort the list in these branches but getting the following error.
I think python is not recognizing the list of float numbers as ‘list’ rather ‘list[float]’ and hence I am unable to perform sort function. Can someone please guide me through.


Thanks in advance

List<T> is not equal to python list. So you need to use the Sort() method of List<T>, with s capitalized. Or use list(g) to convert.

Yes, this works!!
Thank you :slight_smile: