# Default sorting prior to "manual" sorting

**URL:** <https://forum.getkirby.com/t/default-sorting-prior-to-manual-sorting/19067>\
**Category:** Questions\
**Tags:** v3\
**Created:** [August 13, 2020, 7:26pm UTC](https://forum.getkirby.com/t/default-sorting-prior-to-manual-sorting/19067 "2020-08-13T19:26:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanie](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sanie/32/8859_2.png) [@sanie](https://forum.getkirby.com/u/sanie)\
**Post date:** [August 13, 2020, 7:26pm UTC](https://forum.getkirby.com/t/default-sorting-prior-to-manual-sorting/19067/1 "2020-08-13T19:26:32Z")

</div>

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).

 ![Screen Shot 2020-08-13 at 2.53.41 PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/8/880b7e84d297b64bb32073b359c2ebcd9e44f3fa.png)

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

 ![Screen Shot 2020-08-13 at 2.54.09 PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/0/0eb0ba0049fe4cc81abfefe480f6c878056d0e10.png)

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!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 13, 2020, 8:56pm UTC](https://forum.getkirby.com/t/default-sorting-prior-to-manual-sorting/19067/2 "2020-08-13T20:56:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sanie](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sanie/32/8859_2.png) [@sanie](https://forum.getkirby.com/u/sanie)\
**Post date:** [August 13, 2020, 9:55pm UTC](https://forum.getkirby.com/t/default-sorting-prior-to-manual-sorting/19067/3 "2020-08-13T21:55:42Z")

</div>

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