Skip to content

Sort research articles by date (newest first)#483

Merged
compscidr merged 2 commits intomainfrom
fix/research-sort-by-date
Mar 3, 2026
Merged

Sort research articles by date (newest first)#483
compscidr merged 2 commits intomainfrom
fix/research-sort-by-date

Conversation

@compscidr
Copy link
Collaborator

Summary

  • Sort research/scholar articles by publication date (year, month, day) in descending order so newest publications appear first
  • Applied to both the dynamic page research handler and the legacy research handler

Fixes #345

Test plan

  • Visit the research page and verify articles are sorted with most recent publications at the top
  • Verify articles with the same year are further sorted by month/day

🤖 Generated with Claude Code

Research articles from Google Scholar were displayed in citation-count
order. Sort them by year/month/day descending so the most recent
publications appear first. Fixes #345.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 3, 2026 07:37
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.26%. Comparing base (684b790) to head (f6e6699).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
blog/blog.go 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #483      +/-   ##
==========================================
- Coverage   47.60%   47.26%   -0.34%     
==========================================
  Files           7        7              
  Lines        1689     1701      +12     
==========================================
  Hits          804      804              
- Misses        811      823      +12     
  Partials       74       74              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the research publications rendering flow to ensure research/scholar articles are ordered by publication date (newest first) across both the dynamic page handler and the legacy research handler, addressing issue #345.

Changes:

  • Added descending date sorting (Year → Month → Day) for research articles in the dynamic PageTypeResearch path.
  • Added the same descending date sorting for articles in the legacy Research() handler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Address Copilot review: deduplicate the date-desc sort comparator used
in both DynamicPage and Research handlers into a shared helper function,
and add a unit test covering year, month, and day ordering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@compscidr compscidr merged commit c56ef5f into main Mar 3, 2026
2 checks passed
@compscidr compscidr deleted the fix/research-sort-by-date branch March 3, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make research posts sorted by date

2 participants