# Filter & Sort lists by Parameter Values

**URL:** <https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14>\
**Category:** Packages\
**Created:** [January 28, 2014, 3:16pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14 "2014-01-28T15:16:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Charles\_Ruff](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@William\_Charles\_Ruff](https://forum.dynamobim.com/u/William_Charles_Ruff)\
**Post date:** [January 28, 2014, 3:16pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/1 "2014-01-28T15:16:02Z")

</div>

How would anyone go about sorting a list of Sheets by Parameters. Such as my example of gathering all sheets in a list, then wanting to filter out other disciplines besides architecture, then being able to sort the filtered list by another parameter such as Sheet Number, to then output a list of Sheets as Elements, so I could set parameters as a whole to the filtered sorted list of sheets.

&nbsp;

Cheers!

&nbsp;

![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/4-FilterandSortListsbyParameter.jpg?width=750)

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner/32/237_2.png) [@Michael\_Kirschner](https://forum.dynamobim.com/u/Michael_Kirschner)\
**Post date:** [January 29, 2014, 9:44am UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/2 "2014-01-29T09:44:05Z")

</div>

You're right, it was broken, sorry for not checking it before suggesting, I think a fix just went into master branch.

---

<div class="post-metadata">

**Author:** ![William\_Charles\_Ruff](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@William\_Charles\_Ruff](https://forum.dynamobim.com/u/William_Charles_Ruff)\
**Post date:** [January 28, 2014, 11:14pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/3 "2014-01-28T23:14:16Z")

</div>

I have yet to get this node to work...if you come up with a sample let me know.. until then this is what i was able to accomplish from Andres brilliant method.

  

This is the Complex Version.

  

![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/6-Sheets1.jpg?width=721)

This is the Simple Version.

  

![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/8-Sheets3.jpg?width=721)

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner/32/237_2.png) [@Michael\_Kirschner](https://forum.dynamobim.com/u/Michael_Kirschner)\
**Post date:** [January 28, 2014, 10:00pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/4 "2014-01-28T22:00:34Z")

</div>

There is also a new node - group by key, which takes a key mapping function and splits a list into sub lists by the value returned, this would probably work to group the sheets by discipline for example.

---

<div class="post-metadata">

**Author:** ![William\_Charles\_Ruff](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@William\_Charles\_Ruff](https://forum.dynamobim.com/u/William_Charles_Ruff)\
**Post date:** [January 28, 2014, 5:31pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/5 "2014-01-28T17:31:32Z")

</div>

absolutely brilliant. so essentially your catching both room names and element ID's into a list and telling both lists to sort by the sub-list of Room Name...very awesome. ill test it out on my category and a few others and let you know how it works out!

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [January 28, 2014, 5:10pm UTC](https://forum.dynamobim.com/t/filter-sort-lists-by-parameter-values/14/6 "2014-01-28T17:10:16Z")

</div>

There was a similar discussion a couple of days ago (albeit without filtering) which I encourage you to read:

  

[http://autodeskvasari.com/forum/topics/dynamo-list-sorting-question](http://autodeskvasari.com/forum/topics/dynamo-list-sorting-questionhttp://)

  

And here's how I would do it (the example is with rooms but could easily be modified to work with sheets):

  

[![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/12-Capture.png?width=721) ](https://forum.dynamobim.com/wp-content/uploads/discussions/1-1000/11-Capture.png)

[  
 - Select By Category (which apparently you already have)
   
 - Filter List By Booleans
   
 - Sort List Of Lists
   
 ](https://forum.dynamobim.com/wp-content/uploads/discussions/1-1000/11-Capture.png)
