Sorting elements by value

Is it possible to sort revit elements by a parameter value? I have a list of elements that I want to use but the elements are not in the correct order, I tried sorting the results from the “Element.GetParameterValueByName” to get the correct order but can’t retrieve the elements from the sorted list. Are there any nodes that will allow me to accomplish this goal? Any help or suggestions would be greatly appreciated, Thanks!

You have a solution below by someone else

SortByFunction will do:

1 Like

Hi,

You can also look at how each node works.
https://dictionary.dynamobim.com/2/#/List/Organize/Action/SortByFunction

Thanks it worked!

1 Like