# Group list values

**URL:** <https://forum.dynamobim.com/t/group-list-values/2466>\
**Category:** Packages\
**Created:** [October 29, 2015, 12:56pm UTC](https://forum.dynamobim.com/t/group-list-values/2466 "2015-10-29T12:56:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Coffman2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aaron_coffman2/32/203569_2.png) [@Aaron\_Coffman2](https://forum.dynamobim.com/u/Aaron_Coffman2)\
**Post date:** [October 29, 2015, 12:56pm UTC](https://forum.dynamobim.com/t/group-list-values/2466/1 "2015-10-29T12:56:31Z")

</div>

I’m looking to break up a list based on the same values; values in this case would be a specific programmatic department. I have managed to split the list based on each individual input but I would like to split the list based on the same department and keep the instances of each department as a sublist. Any suggestions on the best way to go about it?

![sort list](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/7/775c7381f22d470f0684838430b2b939d281207a.png)

---

<div class="post-metadata">

**Author:** ![Bo\_Steadman](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Bo\_Steadman](https://forum.dynamobim.com/u/Bo_Steadman)\
**Post date:** [October 29, 2015, 1:04pm UTC](https://forum.dynamobim.com/t/group-list-values/2466/2 "2015-10-29T13:04:57Z")

</div>

There’s a great node for this purpose: GroupByKey. Input your original list into both the list and key inputs and it will group the items by their name. See image below.

 ![Test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/4/4412aaf1f4e740e2d814e049a54d6682fab65d71.jpg)

---

<div class="post-metadata">

**Author:** ![Aaron\_Coffman2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/aaron_coffman2/32/203569_2.png) [@Aaron\_Coffman2](https://forum.dynamobim.com/u/Aaron_Coffman2)\
**Post date:** [October 29, 2015, 1:19pm UTC](https://forum.dynamobim.com/t/group-list-values/2466/3 "2015-10-29T13:19:01Z")

</div>

Thanks for the reply Bo. What version are you using? That was one of the first nodes I tried but received the following:

![sort list2](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/c33f975e099327e3e5e2dfaec47b0ddcd6f34c29.jpg)

&nbsp;

Edit: Found the “Group Items by Key List” packaged node and did just what I needed

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 29, 2015, 2:11pm UTC](https://forum.dynamobim.com/t/group-list-values/2466/4 "2015-10-29T14:11:54Z")

</div>

@ Aaron, Bo is using latest build Dynamo version 0.9.1 you can get it here [http://dynamobim.com/download/](http://dynamobim.com/download/)
