Nevermind, I figured it out.

            if ($wsum!=0) {
                $rtn .= $wsum;
                $wslen = strlen($rtn);
                while ($wslen++<5) {
                    $rtn = "&nbsp;" . $rtn;
                }
            }

did the trick. Not a chance on the IntegerDataCompare thing though


--- On Tue, 18/7/17, Pete Lomax <[email protected]> wrote:

> From: Pete Lomax <[email protected]>
> Subject: Numerical sort order
> To: "[email protected]" <[email protected]>
> Date: Tuesday, 18 July, 2017, 20:55
> The other thing that would work, according to
> my manual tests and within a limit of 5 digits, would be to
> change "$rtn .= $wsum;" in votecounter.php such that it
> yielded "12345","&nbsp;1234","&nbsp;&nbsp;123",
> etc - but my php is not up to that.
> 
> Pete
> 

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to