I’m using the File Entries tag to list files from a specific category. I only see the option to order by date or random. Is there any way to sort files in a specific order? Whether it be an add-on, extension or by modifying the code?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 23, 2012 8:51am
Subscribe [2]#1 / Jan 23, 2012 8:51am
I’m using the File Entries tag to list files from a specific category. I only see the option to order by date or random. Is there any way to sort files in a specific order? Whether it be an add-on, extension or by modifying the code?
#2 / Jan 24, 2012 8:14pm
Odd that alphabetically is not an option.
You could use the query module instead http://ellislab.com/expressionengine/user-guide/modules/query/index.html
The base query would be something like:
SELECT * FROM `exp_files` ORDER BY titleNote that this is not very efficient as you select the whole row, ideally you just select those fields you need.