Hi, i am a beginner on dynamo and would like to know how i can use a sorted list to sort another one… !
Thanks per advance !!
Hi, i am a beginner on dynamo and would like to know how i can use a sorted list to sort another one… !
List.SortByKey
Sorting a list by a key… And please use screenshots not potato-phone-pictures… It physically hurts the eyes
Iam really sorry for the bad pic
Sorry but list. Sortbykey doesn’t seem to work…
Hi,
Please post your error and proper screenshot
Alternatively you can (instead of grouping and sorting separately (it works either way)) use the Orchid node…
But as you’re working with lists-within-lists-within-lists… you NEED to use list levels a lot.
Unfortunately i can’t get what i want , even when playing with the levels…
Thanks for your advices anyway !
Any idea of a solution ?
Thanks for the test but even in yours, the result at the end is not the one expected:
elements in your watch node are in the wrong order , the right result should have been:
element1,element2,element3,e4 and ,e5,e6,e7…
instead of
e1, e3, e2, e4 & e7,e6,e5…
Sorry
Why so ? The elements are sorted in a way that the orders are sorted.
No… They are exactly as expected… the order is sorted from assumed to be unsorted in the beginning… and elements taking the places corresponding to the sorting of the corrected order…
So the final order is exactly as one would expect…
Thank you for your advices guyzz.
But my goal is not achieved, maybe i havent very well explained what i aim for.
My Goal is to obtain the list 1 in the order of the list 2. Maybe because as a grasshopper user my logic is different but i don’t understand why in every solution you purpose i never get what i want … !!!
Do you want to do something like this ? If it is only sorting your rooms another way…
Thanks for your comment, but as you can see the number of the rooms are now completely diffrent from the initial list. It has taken only one item of the right “Level” and repeated it …Nice try but this is still not the expected result !
Use List.UniqueItems on your keys and use List.AllIndexOf instead. It should work if you tweak a little bit your graph.
Try things on your own and experiment with Dynamo. Only that why you’ll progress