yes, index.php is the right....
// Assign Latest Photos
// riga qui sotto mod by sly: era ORDER BY date DESC
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY rand()" , $num , $pos ) ;
but i have made any test with:
ORDER BY title ASC or DESC or date ASC or DESC etc... and
result don't change!!!! so it's mean this is not my lines!!!
i don't remember but maybe i have modified another file with the sort order... do you know what should be ?
thanks a lot...