Incoming Folder view

Permalink
Hi All

I have just come across an annoying thing in the way C5 deals with files in the incoming folder.
I have a site that uses this folder a lot as they upload large Tiff files for visitor downloads.
On the server the files all sit neatly and in name order in the folder but when I add them to the file manager via upload multiple/add incoming the order seems to just randomize and we have to trawl through every file to find the one we are looking for, there seems to be no rhyme or reason to the order, they are not via name, date or anything else useful for quick file searching.

Has anyone come across this before or got a solution?
I know its a long shot but if you don't ask you will never know :)

madeforspace
 
mnakalay replied on at Permalink Reply
mnakalay
Hello,
In the file manager you can click on any column header and the list of files will be ordered by that column.
The column currently in use will have a little triangle showing the direction of ordering.
I think that by default, the list is organized by date added.
madeforspace replied on at Permalink Reply 1 Attachment
madeforspace
Hi mnakalay

Thanks for your reply but that not the area I have a problem in, its the add file section that is non sortable, see screen print attached.
mnakalay replied on at Permalink Reply
mnakalay
Oh I see.
Well the function responsible for that is getIncomingDirectoryContents() that you can find in concrete/helpers/concrete/file.php

You will see that it uses the PHP function readdir to scan the directory and list the files.

According to the PHP documentation "The entries are returned in the order in which they are stored by the filesystem." (http://au1.php.net/readdir)

So I suppose that's just the way it is unless you want to override that and create a modified function to order files alphabetically. Should be doable.