PageListSortPTV

Test pagelist with PTV sort


Sort by -MonthNum
(:pagelist group={$Group} fmt=#ptvsort name="pagelist*" order=-$:MonthNum,name :)
>>comment<<
[[#ptvsort]]
(:template each:)
(:if ! equal "{=$:MonthNum}" "":)
-> "{=$:MonthNum}" [-{=$Name}-]
(:ifend:)
[[#ptvsortend]]
>><<

(:template each:)

"{=$:MonthNum}" {=$Name}


Default sort by -MonthNum
(:pagelist fmt=#ptvsort2 name="pagelist*" :)
>>comment<<
[[#ptvsort2]]
(:template default group={$Group} order=-$:MonthNum,name :)
(:template each:)
(:if ! equal "{=$:MonthNum}" "":)
-> "{=$:MonthNum}" [-{=$Name}-]
(:ifend:)
[[#ptvsort2end]]
>><<

(:template default group=Test order=-$:MonthNum,name :) (:template each:)

"{=$:MonthNum}" {=$Name}

Peak memory: 2,097,312 bytes