# List.Reorder - List Level not working

**URL:** <https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [August 14, 2024, 11:25am UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550 "2024-08-14T11:25:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [August 14, 2024, 11:25am UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/1 "2024-08-14T11:25:48Z")

</div>

Hello forum

Please could I ask for your help, I am struggling to match the correct results using list levels on the List.Reorder OOTB node. Please see screengrab below.

On the top node I am getting the correct result due to isolating a single element and reordering the list of points. When I feed in multiple elements into the node using L2, it is not working. Am I doing something obviously wrong with the list levels?

 ![List.Reorder](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/17e34de4e7e3d45cc2fdd760bad95971808bebe0.png)

Thank you so much for any help.

Cheers  
Tim

---

<div class="post-metadata">

**Author:** ![rick.vandelagemaat](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rick.vandelagemaat](https://forum.dynamobim.com/u/rick.vandelagemaat)\
**Post date:** [August 14, 2024, 11:50am UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/2 "2024-08-14T11:50:28Z")

</div>

After some playing around, the following fixed it.  
Instead of setting the list input to lvl2, set the indices to lvl2. Also set the lacing of the List.Reorder to Longest:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/2006e669acf327c4c7243821a243dd71ce6d8dbf.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [August 14, 2024, 11:54am UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/3 "2024-08-14T11:54:12Z")

</div>

> [@TimGreatrex](#):
>
> Am I doing something obviously wrong with the list levels?

AFAIK how OP set it up should work 🤔

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2db8ddc1331139a149caa82b77d92d909a02e1b8.png)

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [August 14, 2024, 11:57am UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/4 "2024-08-14T11:57:19Z")

</div>

Hi Rick

Thank you so much for this. I followed your example, and I am still getting incorrect results. Any ideas?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/d/dd4aa87e6fb3dd396b6bf3c2535f6f182d46fc91.png)

Thank you very much again!  
Tim

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [August 14, 2024, 12:01pm UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/5 "2024-08-14T12:01:25Z")

</div>

Thank you for this. This is really odd how yours is working correctly and mine is not. This is how I would expect it to work. I will try switching off + on again. Thank you for your time testing this.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [August 14, 2024, 12:04pm UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/6 "2024-08-14T12:04:27Z")

</div>

> [@TimGreatrex](#):
>
> I will try switching off + on again.

Sometimes simply doing this does the trick.

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [August 14, 2024, 12:41pm UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/7 "2024-08-14T12:41:57Z")

</div>

I tried the off/on trick with no luck. However, I did try adding a List.Clean node, and this worked!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/95e6ebace71cf854eaab10392233c95d2c642fe5.png)

I have no idea how/why this worked, and it is annoying that it did in some ways.  
Thank you again, and Rick, for your help!

Cheers  
Tim

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [August 14, 2024, 12:44pm UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/8 "2024-08-14T12:44:41Z")

</div>

Out of curiosity.

What would happen if you would set Levels at @3 in your original script?  
Somehow you ended up with an extra Level in your list(?).

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fdc8744153bd684f9b072733b40b04fc9c84efeb.png)

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [August 14, 2024, 12:48pm UTC](https://forum.dynamobim.com/t/list-reorder-list-level-not-working/103550/9 "2024-08-14T12:48:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/78ed99561dcdb67887c8f5c81c39fe07116bf6ae.png)

Like this? It adds an extra level. Thanks
