Skip to content

[NuGet.org Bug]: Package Pagination with sort by downloads desc is not sorted by downloads #10427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tonyqus opened this issue Apr 26, 2025 · 3 comments

Comments

@tonyqus
Copy link

tonyqus commented Apr 26, 2025

Impact

It's more difficult to complete my work

Describe the bug

I'm crawling the package data from packages list page

I found that the packages are not sorted by downloads. It's a bit weird.

Repro Steps

Go to https://www.nuget.org/packages?page=8&prerel=false&includeComputedFrameworks=false&sortBy=totalDownloads-desc

Check the download number of Azure.Security.KeyVault.Keys package and Microsoft.Azure.Cosmos package.

Image

Go to next page (page=9)

Image

You will see that the next package has more downloads than Azure.Security.KeyVault.Keys package and Microsoft.Azure.Cosmos package. But it's sorted behind these two packages. It doesn't make sense.

Expected Behavior

The packages should be sorted by download desc page by page.

Screenshots

No response

Additional Context and logs

No response

@tonyqus tonyqus changed the title [NuGet.org Bug]: Package Pagination with sort by downloads desc is not really sorted by downloads [NuGet.org Bug]: Package Pagination with sort by downloads desc is not sorted by downloads Apr 26, 2025
@tonyqus
Copy link
Author

tonyqus commented Apr 26, 2025

Same problem happens in page=20

Image

Duende.AccessTokenManagement package only has 6M download but it ranks in page 20. It doesn't make sense

However, packages after this package has 78M downloads. They are listed in page 21

Image

@tonyqus
Copy link
Author

tonyqus commented Apr 26, 2025

Same problem happens in page=25

Image

Duende.IdentityModel.OidcClient package only has 54k downloads

@erdembayar
Copy link
Contributor

Related to #10405 (reply in thread)

@advay26 advay26 removed their assignment Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants