Sorting items in a branch using GHPython

Hello

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.

Capture

Thanks in advance

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