Get the Top element by location instead of ID

I am going to combine multiple textnode into one.I want to get the location of firstitem as the top textnote, but the list was sorted by Element ID. Sometimes, it will mix the order of textnotes.
Is there nodes can get the top textnotes instead of using List.FirstItem?

Hi @sb1102222,
Welcome to the Dynamo community.
You need to sort your Text Notes by Y coordinate.
Try this: TextNoteSort.dyn (37.5 KB)

Hi!! @AmolShah,
Nice to meet you.
Thank you for your advice about Y coordinate node which solving my problem.
Also, the code block x+"" == “Text Notes” is cool!!

1 Like

Glad it worked out for you.
Keep an eye out on forum topics whenever you get a chance and you will learn more awesome and cool stuff!

1 Like