Default sorting prior to "manual" sorting

Hello, I’m having trouble with the following:

I am sorting my uploaded files by manual sort field (sortBy('sort’)).

However, if I just upload my files via panel and don’t do any manual sorting, they are sorted/shown in the panel in alphabetical order (which I understand is the default).

However, on the front end, they are shown in a different order:

It would be great if, on the frontend, they were shown in alphabetical order (like in the panel), in case my client chooses not to manually sort the files.

Is this possible? Am I missing/misunderstanding something?

My template goes like this:

<?php foreach ($page->images()->not($page->images()->template('cover'))->sortBy('sort') as $image): ?>
    <li>
      <img src="<?= $image->url() ?>" alt="">
    </li>
<?php endforeach ?>

Thanks!

There is an issue on GitHub: https://github.com/getkirby/kirby/issues/2690

Thanks for pointing that out, I’ll take a look there!