Hi Rogutès,<br><br>Thank your for your reply ; but sorry, no, it doesn&#39;t still work (11 still &lt; 2)<br>Maybe some faulty syntax ? or something else, I don&#39;t know (is FmtPV a Page Text Variable ?).<br><br>Note that, for a pagelist ordering by revcount, I have to write $RevCount (not revcount) as in :<br>
(:pagelist group=Argot order=-$RevCount list=normal fmt=#nb_rev:)<br><br>Thank you for your help.<br>Gilles.<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br>
</div></div>The first example in that page ought to work. Did you try adding this to<br>
config.php?<br>
<br>
# sorting pages by numerical integer pagetextvar data<br>
function IntegerDataCompare($x, $y, $var) {<br>
 &nbsp; &nbsp; &nbsp;# get integer value of the page text variable<br>
 &nbsp; &nbsp; &nbsp;$xval = intval(PageTextVar($x, $var));<br>
 &nbsp; &nbsp; &nbsp;$yval = intval(PageTextVar($y, $var));<br>
 &nbsp; &nbsp; &nbsp;# compare integer values<br>
 &nbsp; &nbsp; &nbsp;if ($xval &gt; $yval) $c = 1;<br>
 &nbsp; &nbsp; &nbsp;elseif ($xval &lt; $yval) $c = -1;<br>
 &nbsp; &nbsp; &nbsp;else $c = 0;<br>
 &nbsp; &nbsp; &nbsp;return $c;<br>
}<br>
<br>
# order=revcount will sort integers numerically by $:RevCount<br>
$PageListSortCmp[&#39;revcount&#39;] = &#39;IntegerDataCompare($x, $y, &quot;RevCount&quot;)&#39;;<br>
<br>
And then use<br>
(:pagelist group=Argot order=-revcount list=normal fmt=#nb_rev:)<br>
<br>
<br>
--<br>
<font color="#888888">-- &nbsp;Rogutės Sparnuotos<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------<br>| A | de la langue française<br>| B | <a href="http://www.languefrancaise.net/">http://www.languefrancaise.net/</a><br>| C | <a href="mailto:languefrancaise@gmail.com">languefrancaise@gmail.com</a><br>
---------------------------------------<br>