Dynamo is not correct sorts list

hi everybody! i need help guys. I realy can’t understand why sorting list in dynamo is not correct. But sorting in Revit specification is correct. Why? how can this be fix it

Everything is working as expected. You’re feeding in a list of strings and the strings are getting sorted based on their characters.

In excel, we don’t have strict typing and when a cell is defined as generic, excel will first try to treat it as a number. (because excel is primarily a number crunching software).

If you want Dynamo to treat your list the same way, you’ve got two options available - either convert the strings to numbers, or use their number value to sort them and preserve the objects as strings:


Ok! I all understand! Thank you so much

1 Like