sdepold / jquery-rss

An easy-to-use rss plugin for jquery with templating.
MIT License
454 stars 142 forks source link

Ordering entries not working #164

Open AndyKing27 opened 4 years ago

AndyKing27 commented 4 years ago

I am combining a number of rss feeds and am using the order: "-publishedDate" option. However, neither the individual feeds or the overall combined list are being sorted correctly. I would expect the entire list to be sorted by date, but not even individual feeds are being sorted. Screenshot 2020-09-23 094125

Config is -

    $("#rssfeed").rss(
        [
            "https://www.cnet.com/rss/news/", 
            "http://feeds.bbci.co.uk/news/technology/rss.xml"
        ],
        {
            entryTemplate: '<li class="news-item"><a href="{url}">{date} : {title}</a></li>', 
            limit: 10, 
            dateFormat: "DD MMM YYYY HH:mm", 
            order: "-publishedDate"
        }
    )
BMRX commented 3 years ago

I'm having the exact same issue.

order: "-publishedDate" does nothing.