<div dir="ltr"><div>I've added some of this to the wiki under <a href="http://www.pmwiki.org/wiki/PmWiki/PageLists#pagetextvariable">http://www.pmwiki.org/wiki/PmWiki/PageLists#pagetextvariable</a><br><br></div>Edit as needed.<br>

</div><div class="gmail_extra"><br clear="all"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br><a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br>

<a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br><a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br>

<br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br></div>
<br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 10:21 AM, Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com" target="_blank">pbowers@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Thu, Jun 27, 2013 at 6:18 AM, Simon <span dir="ltr"><<a href="mailto:nzskiwi@gmail.com" target="_blank">nzskiwi@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I'm having trouble understanding why a pagelist I have written won't come out in order by page text variable<div>order=-$:MonthNum</div>><br>><br></blockquote></div><div>You've defined your PTV using a markup expression as below:<br>



<br>(:MonthNum:{(ftime fmt="%m" when=(substr {$Name} 4))}:)<br><br>pagelist does not evaluate markup expressions when working with PTVs and neither are the PTV values cached anywhere. Therefore pagelist is sorting the literal values of open-curly-brace followed by open-paren followed by the 5 characters "f-t-i-m-e" etc.  Since these literal values are identical across all your pages you end up with what appears to be random ordering.<br>



<br>Probably the best way for you to fix this is by hardcoding the $:MonthNum in your page-creation template (allowing some flexibility in page naming later on) or by defining a PV which does the conversion from the pagename to the monthnum.  There are undoubtedly other solutions, but those are the first 2 that come to mind...<span class="HOEnZb"><font color="#888888"><br>



<br>-Peter </font></span></div></div></div></div>
<br>_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br></blockquote></div><br></div>