1
           
            
                
     
    
    Hey guys, the following is the block template from the eguide module I am using. I have tweaked it to make it a project and completion module for my company. The quesiton I have is, what do I need to change in the following block code to make it show and sort the items by date rather than last post. 
 <{if $block.categories}> 
<div><b><{$smarty.const._BLOCK_EV_CATEGORY}>b> 
  <{foreach from=$block.categories key=catid item=cat name=categ}> 
    <a href="<{$block.module_url}>/index.php?cat=<{$catid}>"><{$cat.name}>a><{if !$smarty.foreach.categ.last}>, <{/if}> 
  <{/foreach}> 
div> 
<{/if}> 
<{if $block.events}> 
<{if $block.detail}>  
<{foreach item=event from=$block.events}> 
<div><{$event.date}> 
   <a href="<{$block.module_url}>/event.php?eid=<{$event.eid}><{if $event.exid}>&sub=<{$event.exid}><{/if}>"><{$event.title}>a>  
   (<a href="<{$xoops_url}>/userinfo.php?uid=<{$event.uid}>"><{$event.uname}>a> <{$event.post}>) 
   <{$event.mark}> 
div> 
<{/foreach}> 
<{else}> 
<{foreach item=event from=$block.events}> 
<div><{$event.date}> 
  <a href="<{$block.module_url}>/event.php?eid=<{$event.eid}><{if $event.exid}>&sub=<{$event.exid}><{/if}>"><{$event.title}>a> 
  <{$event.mark}> 
div> 
<{/foreach}> 
<{/if}> 
<{else}> 
<div><{$smarty.const._BLOCK_EV_NONE}>div> 
<{/if}> 
<{if $block.waiting}> 
<p><a href="<{$block.module_url}>/admin/index.php?op=events"><{$smarty.const._BLOCK_EV_WAIT}>a>: <{$block.waiting}>p> 
<{/if}> 
<div class="evmore"><a href="<{$block.module_url}>/"><{$smarty.const._BLOCK_EV_MORE}>a>div>