# Automatically determining the top-most node

**URL:** <https://gramps.discourse.group/t/automatically-determining-the-top-most-node/3379>\
**Category:** Help\
**Created:** [March 10, 2023, 6:49am UTC](https://gramps.discourse.group/t/automatically-determining-the-top-most-node/3379 "2023-03-10T06:49:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [March 10, 2023, 1:11pm UTC](https://gramps.discourse.group/t/automatically-determining-the-top-most-node/3379/3 "2023-03-10T13:11:36Z")

</div>

What are you calling the top-most node/person?

Your oldest ancestor?

Sort People view by birth date then run an ancestor filter. The first (or last depending on sorting order) will be that oldest ancestor (if birth date have been entered).

I don’t have this issue because of [my numbering/ordering system](https://gramps.discourse.group/t/genealogical-numbering-systems/230/5), I just sort people records by Gramps Id and it’s done. The greatest IDs give me my oldest ancestors.  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/f/f46041a739c58f426f69232ee939478d64504271.png)  
or retreiving last ids with a simple regexp filter:  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/e/e9d125052fb9cc7ef5a6774d9f02334023e3ddbb.png)

---

_[View the full topic](https://gramps.discourse.group/t/automatically-determining-the-top-most-node/3379)._
