forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Titooy on May 04, 2005, 12:19:21 am

Title: sorting in toprated album
Post by: Titooy on May 04, 2005, 12:19:21 am
If some pictures have the same number of votes and the same rating, the order can be different on the thumb page than in the displayimage. That problem was already reported on CPG 1.3.x

My suggestion: on line 1141 of functions.inc.php,

change
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC $limitinto
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC, pid DESC $limitsince pid is unique and then we're certain that the order will be the same.
Title: Re: sorting in toprated album
Post by: Joachim Müller on May 04, 2005, 07:52:26 am
committed fix as suggested - please confirm.

Joachim
Title: Re: sorting in toprated album
Post by: Titooy on May 08, 2005, 10:04:11 pm
works for me. Thanks.