Skip to content

fix #1754: newest-first sorting for packages + vulnerabilities#2147

Open
shivamshrma09 wants to merge 1 commit intoaboutcode-org:mainfrom
shivamshrma09:fix-1754-sorting
Open

fix #1754: newest-first sorting for packages + vulnerabilities#2147
shivamshrma09 wants to merge 1 commit intoaboutcode-org:mainfrom
shivamshrma09:fix-1754-sorting

Conversation

@shivamshrma09
Copy link

@shivamshrma09 shivamshrma09 commented Feb 5, 2026

Description

This PR addresses #1754 by implementing newest-first (descending) sorting for Packages, Vulnerabilities, and Advisories. This improves the UX by showing the most recent entries first.

Changes

  • Modified Package view query to sort by version_rank desc.
  • Updated Vulnerability and Advisory sorting to use vulnerability_id and advisory_id desc.

Checklist

  • Signed-off-by: Shivam Sharma shivamshrma09@email.com
  • PR is descriptively titled and links the original issue above
  • Local tests passed (Ran pytest tests/vulnerablecode/test_views.py)
  • No merge conflicts with the base branch

@shivamshrma09
Copy link
Author

shivamshrma09 commented Feb 7, 2026

@pombredanne sir can you plz review my PR and merge it or give your feedback it will be helpfull

…lities

- packages: version_rank desc
- vulns: vulnerability_id desc
- advisories: advisory_id desc

Signed-off-by: shivamshrma09 <your-email@example.com>
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