# Sort repeating group by a linked child element

**URL:** <https://forum.bubble.io/t/sort-repeating-group-by-a-linked-child-element/244673>\
**Category:** Database\
**Created:** [February 1, 2023, 8:11pm UTC](https://forum.bubble.io/t/sort-repeating-group-by-a-linked-child-element/244673 "2023-02-01T20:11:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![melbournemarsden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/melbournemarsden/32/171543_2.png) [@melbournemarsden](https://forum.bubble.io/u/melbournemarsden)\
**Post date:** [February 3, 2023, 3:55am UTC](https://forum.bubble.io/t/sort-repeating-group-by-a-linked-child-element/244673/5 "2023-02-03T03:55:49Z")

</div>

Does this help at all?

I’ve run into a similar situation and resolved it by doing this: (callen.hedglen’s comment)

> [@Sorting Repeating Groups That Use :grouped by?](http://forum.bubble.io/t/sorting-repeating-groups-that-use-grouped-by/42409/4):
>
> Hi all, After lots of trial and error, I found a way to sort a repeating group that uses :grouped by! What you have to do essentially is create your repeating group normally like you have been, and use the :grouped by like normal. However, in each cell of your repeating group, you need to add another group. You can then set this group to be the elements you need by using the repeating group as a list of data, and matching it against search results, using the cell index to create the new list. …

It’s a slightly different situation though so may not work. I’m too tired right now to think about any further ideas but I can think about it again tomorrow if you’re still stuck.

---

_[View the full topic](https://forum.bubble.io/t/sort-repeating-group-by-a-linked-child-element/244673)._
