diff --git a/journals/views.py b/journals/views.py index 899edf79899b8dd5e12edf3f45d78449de89af82..9ed655acb42b1b6bbcf314725c38a4ac00b18fd1 100644 --- a/journals/views.py +++ b/journals/views.py @@ -73,7 +73,8 @@ def recent(request, doi_label): """ journal = get_object_or_404(Journal, doi_label=doi_label) recent_papers = Publication.objects.published( - in_issue__in_volume__in_journal=journal).order_by('-publication_date')[:20] + in_issue__in_volume__in_journal=journal).order_by('-publication_date', + '-paper_nr')[:20] context = { 'recent_papers': recent_papers, 'journal': journal, diff --git a/scipost/views.py b/scipost/views.py index 27508f14c4e2b57d904bddf584df894a9848724b..146b08f53e11cdf3b330c898eb4a6c7ed62a2094 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -176,7 +176,8 @@ def index(request): context = { 'latest_newsitems': NewsItem.objects.all().order_by('-date')[:1], 'submissions': Submission.objects.public().order_by('-submission_date')[:3], - 'publications': Publication.objects.published().order_by('-publication_date')[:3] + 'publications': Publication.objects.published().order_by('-publication_date', + '-paper_nr')[:3] } return render(request, 'scipost/index.html', context)