Sorting repeatableEntry

Is it possible to sort a repeatableEntry in an Infolist using data from a relationship?
I would like to sort using 'startdate' from a relationship called 'documents':

RepeatableEntry::make('persons')  // relationship persons
                    ->schema([
                        TextEntry::make('datum')
                            ->getStateUsing(fn($record) => $record->documents()->pluck('startdate'))
                            ->date('d-m-Y'),
                        TextEntry::make('fullname')
                            ->getStateUsing(fn($record) => $record->fullname()),
Was this page helpful?