Skip to content

fix: use newsDate for chronological ordering instead of mutable id#155

Open
shivv23 wants to merge 1 commit into
c2siorg:mainfrom
shivv23:fix/chronological-news-ordering
Open

fix: use newsDate for chronological ordering instead of mutable id#155
shivv23 wants to merge 1 commit into
c2siorg:mainfrom
shivv23:fix/chronological-news-ordering

Conversation

@shivv23

@shivv23 shivv23 commented Mar 23, 2026

Copy link
Copy Markdown

Description

Sort news by actual date (newsDate field) instead of id field, which was being overwritten with UUIDs after sorting.

Related Issues

Motivation and Context

The previous implementation sorted by id field, but _ordering_id() immediately overwrites all ids with UUIDs, making the sort meaningless.

How Has This Been Tested

  • Syntax verification passed
  • All changes are non-breaking

Checklist

  • My code follows the code style of this project
  • I have read the CONTRIBUTING document

Sort news by actual date (newsDate field) instead of id field,
which was being overwritten with UUIDs after sorting.

Closes c2siorg#124
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.

1 participant