Skip to content

In UI and API, sort packages and vulnerabilities from newest to oldest. #1754

Open

Description

@pombredanne

When I use the UI and search for packages, or when I use the API, I would like to see results of package lists sorted by version from newest to oldest. Same for vulnerabilities, from newest to oldest.

Why? because I am more likely to be interested by recent and current versions than older versions and older vulnerabilities.

Activity

  1. changed the title [-]In UI and API, sorts packages by version from newest to oldest, and vulnerabilities too[/-] [+]In UI and API, sort packages and vulnerabilities from newest to oldest.[/+] on Jan 21, 2025
  2. atmajaa commented on Jan 22, 2025

    @atmajaa

    @pombredanne Hi, I am working on this issue. Will update if I have any doubts!

  3. pombredanne commented on Jan 22, 2025

    @pombredanne
    MemberAuthor

    @atmajaa Thanks! please make sure to start by outlining the gist of your design as a comment.

  4. Rishi-source commented on Jan 23, 2025

    @Rishi-source

    Hi @pombredanne , I have made some changes and testing them on my local server I have firstly imported some packages and vulnerability data and then runned python3 manage.py improve compute_version_rank imporover in order to assign the the version ranking to the packages.
    After that I have impletelemented some changes in the views.py (https://gist.github.com/Rishi-source/25e42438c87c26c3b7d1324bba60609f) and I have got these results I am sharing a screenshot of the ordering of the results after implementing these changes which I have provided in the gist.
    Please correct me If I am wrong at some point. I also want to ask that have I correctly sorted the vulnerability data on the basis of vulnerability_id or I have to use/make some other field in order to sort them.

  5. topslugBurpy commented on Feb 11, 2025

    @topslugBurpy

    hey @pombredanne is this issure resolved?

  6. nadhamsaipallavi commented on Mar 20, 2025

    @nadhamsaipallavi

    hello i want to contribute to this issue , can I ?

  7. shivamshrma09 commented on Feb 5, 2026

    @shivamshrma09

    Hi @pombredanne!

    Want to fix
    #1754 (newest-first sorting).

    Know Django, local Docker running.
    PR ready in 2 days!

  8. added a commit that references this issue on Feb 5, 2026
    6df203d
  9. shivamshrma09 commented on Feb 5, 2026

    @shivamshrma09

    good evening
    @pombredanne sir

    i have made an PR to resolve this issue plz review it

    i like Aboutcode org Projects bcz it resolve real issues faced by Devlopers

  10. added a commit that references this issue on Feb 28, 2026
    399766f
  11. Raji2006629 commented on Mar 19, 2026

    @Raji2006629

    Hi, I'm interested in working on this issue. Is this still relevant and available?

  12. added a commit that references this issue on Mar 23, 2026
    657a913
  13. ashwinraj8090 commented on Mar 28, 2026

    @ashwinraj8090

    Hi @pombredanne,

    I was exploring this issue and noticed that there have already been some discussions and attempts to implement sorting.
    Is this issue still open for contribution, or is there any remaining part that I could help with?
    I would be happy to contribute if there is still work needed.
    Thank you!

  14. ziadhany commented on Jul 14, 2026

    @ziadhany
    Collaborator

    This issue has been partially fixed:

    see:

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions