sort photos by image size

Rog

Joined: 2004-10-27
Posts: 17
Posted: Fri, 2005-08-26 08:01

I'd like to sort thumbnails by image orientation - so that I can display the landscape images before portrait. If I could sort them by image width, I'd be OK. Anyone who could help me with the code for it?
Thanks!
Rog

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-08-26 14:21

do you want this as a presort or main sort or both?
look at modules/newitems.. this is a module that adds new sort options.

 
Rog

Joined: 2004-10-27
Posts: 17
Posted: Sat, 2005-08-27 05:33

I want to change it in the gallery themes page, where I can choose the sort order for each album. I can find the AdminThemes.tpl page where the options are, but not the sort functions themselves.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-08-27 16:56

addon modules can add sort types.. that's why i pointed you to modules/newitems.