[SOLVED] RSS2HTML how to sort
Posted: Sun Jun 01, 2014 12:56 pm
with the RSS2HTML module that can be installed in CMSMS, how can we sort the items by date in either ascending or descending order as they are listed?
I am currently using the following code in CMSMS for this module...
thanks for any help!
I am currently using the following code in CMSMS for this module...
Code: Select all
{foreach from=$rss->items item='item'}
<div class="rssbox">
<h3><a href="{$item.link}">{$item.title}</a></h3>
<em>
<time pubdate="{$item.pubdate|date_format:'%Y-%m-%d'}">{$item.pubdate}</time>
</em>
<p>{$item.summary}</p>
</div>
{/foreach}