I've created a setup whereby whenever a user modifies a record and hits save, the save action inserts a new record and leaves the original as it was.
To achieve this, every record has a Unique Record Reference - this allows me to see which records are related (any which are related have the same Unique Record Reference). Every record also has a Sequence Number. Every time a record is updated, the sequence number is incremented by 1.

I want the gallery to only displays records of the latest sequence number.
I have achieved this by using a parent and child gallery. The parent gallery carries out the "GroupBy" action. It groups the records by Unique Record Reference:
GroupBy('PowerApps Version Testing EH',"UniqueRecordReference","DATA")
The child gallery does the rest, which is to sort by Sequence number, then get the latest sequence number only:
First(Sort(ThisItem.DATA, Sequence, SortOrder.Descending))
I'd like to avoid having a parent and child gallery. Instead, perform the above in just a parent gallery. Is this possible?
Thank you.
Ed