1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed ordering of Blog and Podcast RSS feeds.

This commit is contained in:
Uncled1023 2016-06-30 23:53:02 -07:00
parent 78b80b1ff3
commit d0fd245076

View File

@ -61,7 +61,7 @@ namespace Teknik.Areas.RSS.Controllers
List<SyndicationItem> items = new List<SyndicationItem>();
foreach (BlogPost post in blog.BlogPosts)
foreach (BlogPost post in blog.BlogPosts.OrderByDescending(p => p.BlogPostId))
{
if (post.Published && post.System == isSystem)
{
@ -89,7 +89,7 @@ namespace Teknik.Areas.RSS.Controllers
public ActionResult Podcast()
{
List<SyndicationItem> items = new List<SyndicationItem>();
List<Podcast.Models.Podcast> podcasts = db.Podcasts.Where(p => p.Published).ToList();
List<Podcast.Models.Podcast> podcasts = db.Podcasts.Where(p => p.Published).OrderByDescending(p => p.Episode).ToList();
if (podcasts != null)
{
foreach (Podcast.Models.Podcast podcast in podcasts)