# Independent Sorting for Levels when using recursive grouping in Table Views

**URL:** <https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573>\
**Category:** Ideas & Features\
**Created:** [March 16, 2026, 12:30pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573 "2026-03-16T12:30:48Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 16, 2026, 3:58pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573/21 "2026-03-16T15:58:08Z")

</div>

> [@Michael\_Ichter](#):
>
> Sometimes I thought it would be nice to group tasks by the state field as the top level, and then group them by parent task (self-relation).

In a case like this

| Full name | State |
| --- | --- |
| 1 | Open |
| 1.1 | In progress |
| 1.2 | Done |
| 2.1 | Done |
| 2.1 | In progress |
| 2.1.1 | Open |

how do you image this would look in practice?

---

<div class="post-metadata">

**Author:** ![Michael\_Ichter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/michael_ichter/32/9931_2.png) [@Michael\_Ichter](https://community.fibery.io/u/Michael_Ichter)\
**Post date:** [March 16, 2026, 4:19pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573/22 "2026-03-16T16:19:09Z")

</div>

> [@Chr1sG](#):
>
> | Full name | State |
> | --- | --- |
> | 1 | Open |
> | 1.1 | In progress |
> | 1.2 | Done |
> | 2.1 | Done |
> | 2.1 | In progress |
> | 2.1.1 | Open |

Prioritize sort based on state, and ensure subtasks stayed with their parent.

So it would be:

1. 1 (1.1, 1.2)
2. 2 (2.1, 2.1.1)

Sorry, I’m on mobile at the moment and can’t provide helpful formatting. But it would be similar to how just sorting is now (with only one level of self-relation grouping). The grouping is maintained, and the sorting applies within each level.

---

<div class="post-metadata">

**Author:** ![ID.000](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/id.000/32/14109_2.png) [@ID.000](https://community.fibery.io/u/ID.000)\
**Post date:** [March 16, 2026, 4:21pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573/23 "2026-03-16T16:21:57Z")

</div>

In this case, it worked out great: since some fields are only populated for specific rows (and are empty for other levels), I can sort by those fields first and then apply a general sort for all records. Thank you very much! 🤩 👍

The issue remains, however, for cases where **all** rows share the same fields but still require different sorting logic based on their level — though I imagine that’s a much rarer scenario.  
This serves as food for thought on whether the functionality we discussed above is necessary.

---

<div class="post-metadata">

**Author:** ![ID.000](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/id.000/32/14109_2.png) [@ID.000](https://community.fibery.io/u/ID.000)\
**Post date:** [March 16, 2026, 4:28pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573/24 "2026-03-16T16:28:30Z")

</div>

Just for clarity and as a possible workaround 🫪

For these sub-numbers, we created an additional field that only gets populated for them, copying the value we want to sort by into it. (For example, if the name contains dot in name - for ‘1.2’ or ‘2.1’, the Status is copied into this specific field). Then, we sort first by this field (external field status) and then by ‘Full Name’.

This probably will achieve the result.🙂

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 16, 2026, 5:10pm UTC](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573/25 "2026-03-16T17:10:45Z")

</div>

Thanks for a fruitful discussion.

Sidenote: a recursive formula can be used to get info from the highest level for every child/grandchild/… item in lower levels, e.g. something like this  
TopLevelState := `If(IsEmpty(Parent),State,Parent.TopLevelState)`  
and I can imagine there might be use cases where this need can be solved by creating such a formula and using it as part of sorting rules.

[Previous page](https://community.fibery.io/t/independent-sorting-for-levels-when-using-recursive-grouping-in-table-views/10573.md?page=1)
