[pmwiki-users] Numerical sort order

Pete Lomax petelomax at ymail.com
Tue Jul 18 20:56:34 CDT 2017


Nevermind, I figured it out.

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

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


--- On Tue, 18/7/17, Pete Lomax <petelomax at ymail.com> wrote:

> From: Pete Lomax <petelomax at ymail.com>
> Subject: Numerical sort order
> To: "pmwiki-users at pmichaud.com" <pmwiki-users at pmichaud.com>
> 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"," 1234","  123",
> etc - but my php is not up to that.
> 
> Pete
> 



More information about the pmwiki-users mailing list