<?php
/* config file config_demo.config.php */

// You can fetch URL query-string values
$myOrder = 'pkDate ASC';
if ($_GET['order'] == 'down') {
  $myOrder = 'pkDate DESC';
}

// next line cribbed from the snippet call to generate the arrays needed
$orderBy = array('parsed'=>array(),'custom'=>array(),'unparsed'=>$myOrder);

$tpl = '@CODE:
<div class="dittoDemo">
    <h4>[+pagetitle+]</h4>
    <p>[+date+]</p>
</div>';

$dateSource= 'pkDate';
$dateFormat = '%d %B %Y';

?>