[pmwiki-users] Numerical sort order
Petko Yotov
5ko at 5ko.fr
Thu Jul 20 10:49:52 CDT 2017
On 2017-07-20 17:38, Petko Yotov wrote:
> # order=votes to sort numerically by {$VoteWeightedSum}
> $PageListSortCmp['votes'] = 'IntegerPVCompare($x, $y,
> "$VoteWeightedSum")';
>
> # order=votecount to sort numerically by {$VoteCount}
> $PageListSortCmp['votecount'] = 'IntegerPVCompare($x, $y,
> "$VoteCount")';
Sorry, I've omitted a double backslash, these should be more like:
$PageListSortCmp['votes'] = 'IntegerPVCompare($x, $y,
"\\$VoteWeightedSum")';
$PageListSortCmp['votecount'] = 'IntegerPVCompare($x, $y,
"\\$VoteCount")';
Petko
More information about the pmwiki-users
mailing list