3
thank you Buddy but it seems our newcomer friend "yyvonne" want to change order and you describe how to change sort.
sort and order are totally different.
sort is a custom way to show pictures while order is a 2-way method: Ascending or Descending
anyway i had this problem myself. so here is the solution.
just open the file: class/photoHandler.php
then around line 134 find this function:
function getAlbumPhotoPage($catId, $start) {
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('cat_id',$catId));
$criteria->add(new Criteria('photo_approved',1));
$criteria->setStart($start);
$criteria->setLimit($GLOBALS['xoopsModuleConfig']['nb_column']*$GLOBALS['xoopsModuleConfig']['nb_line']);
$criteria->setSort('photo_weight');
$criteria->setOrder('ASC');
return $this->getObjects($criteria);
}
edit this:
$criteria->setOrder('DESC');