Sort files in link File Selector

Update: Actually I think this might be a bug. I have a lot of files, so the collection is paginated. The first panel (items 1-50) are sorted alphabetically. The second panel is not. The screenshot is from the second panel.


Previous post:
Is there a way to sort the files in the File Selector when creating a link? My files are sorted as I want (alphabetically) in the Files section in the page editor, but if I want to create a link to a file in a Text Block, they are not sorted in the link creator/file chooser.

I think they might be sorted by their sort number in their corresponding meta content file. Could you check this (e.g. does wright-s-c-tropp-l-r-mazziotta-a-2017.pdf.txt contain a smaller sort number than troop-wright-1999-ingroup-identification-relative-depr.....txt)?

Well it seems wright-tropp... does not have a sort number, where tropp-wright... has Sort: 1. Do you think if I deleted all the Sort fields from the text files, they would order alphabetically?

Before you do that, to rule out this: what does erkut-alarcon.... have?

That one has Sort: 2. I’m not sure how some got sort numbers and others didn’t. Perhaps I did some manual sorting and don’t remember doing so?

Or maybe some appeared in a section, others got added later manually?

But that sounds like it would be alphabetical if the sort numbers are removed from those others.

If you have any section with these, better set up sorting on those as well Files section | Kirby CMS so that manual sorting gets deactivated (and sorting numbers aren’t reintroduced).

Ah that worked! Phew – thanks. I have

          files:
            type: files
            sortBy: filename asc
            sortable: false

in the blueprint but I think I added the sortable: false after I had already added some of the files.