[solved] Gallery: set directory sort order programmatically?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

[solved] Gallery: set directory sort order programmatically?

Post by Cerulean »

I have a large number of Gallery directories - these were created automatically by UDT, one for each item in a ListIt2 instance, named according to the ListIt2 item alias.

In the Gallery module the sort order of these directories seems to be random - I'd like to get them sorted alphabetically so it's easier for users to find the directory they're looking for. Is there a way to set the sort order besides manually dragging them?

If the default sort order is based on date maybe some sort of foreach loop to modify the directory date? Or possibly export/process/reimport the database table for Gallery? Any suggestions?
Last edited by Cerulean on Fri Aug 22, 2014 9:57 am, edited 1 time in total.
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

Re: Gallery: set directory sort order programmatically?

Post by Cerulean »

Just noticed that expanding the directory tree in the top level of Gallery results in an alphabetical sorting, so problem solved.
Post Reply

Return to “Modules/Add-Ons”