Page 1 of 1

[solved] Gallery: set directory sort order programmatically?

Posted: Fri Aug 22, 2014 9:44 am
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?

Re: Gallery: set directory sort order programmatically?

Posted: Fri Aug 22, 2014 9:57 am
by Cerulean
Just noticed that expanding the directory tree in the top level of Gallery results in an alphabetical sorting, so problem solved.