# Why Dynamo is sorting the list Ascending automatically?

**URL:** <https://forum.dynamobim.com/t/why-dynamo-is-sorting-the-list-ascending-automatically/87429>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 16, 2023, 9:24am UTC](https://forum.dynamobim.com/t/why-dynamo-is-sorting-the-list-ascending-automatically/87429 "2023-03-16T09:24:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelsalam23TAW](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/abdelsalam23taw/32/157486_2.png) [@Abdelsalam23TAW](https://forum.dynamobim.com/u/Abdelsalam23TAW)\
**Post date:** [March 16, 2023, 9:24am UTC](https://forum.dynamobim.com/t/why-dynamo-is-sorting-the-list-ascending-automatically/87429/1 "2023-03-16T09:24:34Z")

</div>

Hello everyone

I have a problem with Dynamo which drives me crazy  
Every time I select model elements in a specific order, The Dynamo is resorting the list of Ids in different order (Ascending apparently). I want to keep the order of my selection. how to prevent dynamo from doing such so? What is the solution for this ?  
I attached an example. The blue order is the order of my selection in Revit and you can see how the node changed this order automatically.

 ![D](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/464559967bc9ecba750006e33c0b9d134b5b5354.jpeg)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [March 16, 2023, 9:29am UTC](https://forum.dynamobim.com/t/why-dynamo-is-sorting-the-list-ascending-automatically/87429/2 "2023-03-16T09:29:25Z")

</div>

Hello @Abdelsalam23TAW …spring have a node called select.element.in.order probably it could help

---

<div class="post-metadata">

**Author:** ![Abdelsalam23TAW](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/abdelsalam23taw/32/157486_2.png) [@Abdelsalam23TAW](https://forum.dynamobim.com/u/Abdelsalam23TAW)\
**Post date:** [March 16, 2023, 9:38am UTC](https://forum.dynamobim.com/t/why-dynamo-is-sorting-the-list-ascending-automatically/87429/3 "2023-03-16T09:38:10Z")

</div>

It worked pretty fine. Thanks a lot
