Hi,
As you see in the snippet, bollards are supposed to be on Level 1 and in the beginning of the list but they show up at the end of the list. The reason is because a List.Create was used to fetch the bollards separate from other elements. How can they be moved up and be grouped next to other Level 1 items? I have tried Sort by Key, Group by Function/Key etc.
As shown in the image, Key values show the right order of levels elevation but Sort By Key fails to apply that order to the input list.
Thanks in advance!
I can’t see any of your data so I can’t help you with the first part of your question but the reason why your sortbykey isn’t working is because you sort the keys first. The sortbykey node will sort them for you, so feed the Level.Elevation as the keys and delete the List.Sort node.
1 Like
@kennyb6 thanks for the reply - bollards are still at the bottom of the list… it’s as if the List is not sorted by the Keys and therefore it doesn’t show the right order.
Can you show the whole graph with inputs showing? We can’t really help if we can’t see at least all of the inputs.
1 Like
i dont see anything wrong with your graph… maybe is because of your element in the model?
same… i am thinking there is a list management technique that can sort this list in a more customized way!
I mean list management is for sorting lists in ways that will suit a specific purpose… I don’t see why elements can’t be grouped and sorted in more customized way… in fact this is a simple function in Excel, but i am insisting on sorting it in Dynamo 
maybe this is what you want
The problem with this workflow is that when you feed the sorted list to List.Create, the issue is still there… the list management needs to happen after the List.Create in my opinion. Because List.Create will add these elements to the bottom of the list no mater how the data is plugged in and something else needs to happen after List.Create to resolve the ordering issue.
Thanks!
It’s solved - @stillgotme i used your graph and then added it to the list create then had to sort by key again after the data was produced via the ListCreate node.
Thanks for the help!