Permalink
Browse files

might as well order the jobs in the sitemap

  • Loading branch information...
1 parent f067c19 commit 8f502820399ab73f6f388d2b493d188cf9e85cb4 @edsu edsu committed Jan 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 jobs/sitemap.py
View
@@ -6,7 +6,8 @@ class JobSitemap(Sitemap):
priority = 0.9
def items(self):
- return Job.objects.filter(published__isnull=False)
+ jobs = Job.objects.filter(published__isnull=False)
+ return jobs.order_by('-published')
def lastmod(self, obj):
return obj.published

0 comments on commit 8f50282

Please sign in to comment.