# Make sublist from list by value of list value

**URL:** <https://forum.dynamobim.com/t/make-sublist-from-list-by-value-of-list-value/67975>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 8, 2021, 12:31pm UTC](https://forum.dynamobim.com/t/make-sublist-from-list-by-value-of-list-value/67975 "2021-09-08T12:31:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neonaj](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@neonaj](https://forum.dynamobim.com/u/neonaj)\
**Post date:** [September 8, 2021, 12:31pm UTC](https://forum.dynamobim.com/t/make-sublist-from-list-by-value-of-list-value/67975/1 "2021-09-08T12:31:05Z")

</div>

Hello  
i like to take items from list with same value and bring dem to a sublist  
so 103 is in list 0  
121 is in list 1 and so on

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

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [September 8, 2021, 12:35pm UTC](https://forum.dynamobim.com/t/make-sublist-from-list-by-value-of-list-value/67975/2 "2021-09-08T12:35:52Z")

</div>

Du kan da bare skrive til mig på teams 😂

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [September 8, 2021, 12:43pm UTC](https://forum.dynamobim.com/t/make-sublist-from-list-by-value-of-list-value/67975/3 "2021-09-08T12:43:44Z")

</div>

But OK, if you want an answer here instead, here goes.

List.GroupByKey is capable of doing wat you are after:

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