# Make two list match order

**URL:** <https://forum.dynamobim.com/t/make-two-list-match-order/33344>\
**Category:** Revit\
**Tags:** orchid\
**Created:** [March 12, 2019, 7:03pm UTC](https://forum.dynamobim.com/t/make-two-list-match-order/33344 "2019-03-12T19:03:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crapai](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/crapai/32/30525_2.png) [@crapai](https://forum.dynamobim.com/u/crapai)\
**Post date:** [March 12, 2019, 7:03pm UTC](https://forum.dynamobim.com/t/make-two-list-match-order/33344/1 "2019-03-12T19:03:52Z")

</div>

I’m trying to get values from one parameter transfered over to another in a family with several types. When I try the scipt below I get values that do not match the type they are supposed to be in. The order that the dictionary created by parameter.GetValue is the order that is being applied to the family types but the types are ordered differently. G-90 is first folowed by G-95 and so on.

![Dynamo%20list%20sorting%2001](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/4677badc99d671fb66083bed1090df257a388ce7.png)

---

<div class="post-metadata">

**Author:** ![crapai](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/crapai/32/30525_2.png) [@crapai](https://forum.dynamobim.com/u/crapai)\
**Post date:** [March 12, 2019, 7:23pm UTC](https://forum.dynamobim.com/t/make-two-list-match-order/33344/2 "2019-03-12T19:23:53Z")

</div>

Before anyone comments I know that I can put a List.SortNatural node on here to get it to match the family types. However I want another method for instances where the value doesn’t fall nicely into the same order as the family type.

---

<div class="post-metadata">

**Author:** ![crapai](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/crapai/32/30525_2.png) [@crapai](https://forum.dynamobim.com/u/crapai)\
**Post date:** [March 12, 2019, 7:35pm UTC](https://forum.dynamobim.com/t/make-two-list-match-order/33344/3 "2019-03-12T19:35:01Z")

</div>

Before anyone post still I think I fixed it by using levels on the familyType input on the Parameter.GetValue.
