# Sort List According to Another List

**URL:** <https://forum.dynamobim.com/t/sort-list-according-to-another-list/17429>\
**Category:** Lists-Logic\
**Tags:** revit, dynamo\
**Created:** [December 14, 2017, 5:38pm UTC](https://forum.dynamobim.com/t/sort-list-according-to-another-list/17429 "2017-12-14T17:38:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianjgentry](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@christianjgentry](https://forum.dynamobim.com/u/christianjgentry)\
**Post date:** [December 14, 2017, 5:38pm UTC](https://forum.dynamobim.com/t/sort-list-according-to-another-list/17429/1 "2017-12-14T17:38:05Z")

</div>

![DynamoHelp4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e93234745a58daa7df8354de526d4fad44a0831d.JPG)

Hello all,

I am trying to sort a list by the mark value of the elements inside the list. I am using a List.FilterByBoolMask to do this. The problem that I am having is that the final watch node is coming up with elements that are not correct, this is due to the way my Element.GetParameterValueByName list is organized. How would I make my Element.GetParameterValueByName have the same organization as the first list that I am referencing? I think that it might have something to do with the List.SortByKey node but I have not had any success with it. Thanks in advance for the help!

---

<div class="post-metadata">

**Author:** ![christianjgentry](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@christianjgentry](https://forum.dynamobim.com/u/christianjgentry)\
**Post date:** [December 14, 2017, 5:46pm UTC](https://forum.dynamobim.com/t/sort-list-according-to-another-list/17429/2 "2017-12-14T17:46:20Z")

</div>

![Solution](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ec865db34d1b5188764bd50680c14e75baec90d1.JPG)

Sorry guys I think I figured it out. Thanks anyway! I have posted my solution.
