npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Sorting by popularity is not working

When I search for “similarity” and select sorting by popularity =>

https://www.npmjs.com/search?q=similarity&ranking=popularity

How come the package “similarity” appears on top when it has only 2.024 weekly downloads and the package “string-similarity” appears somewhere below when it has much more (108.537) weekly downloads ??


weekly downloads: 108.537


weekly downloads: 2.024

This is a bug for me.


As per the post linked above, it is expected behaviour for packages matching the query exactly to appear as the first result, regardless of the sorting order. Whether this is the right behaviour is another discussion, and you can find part of it in the replies to the post linked above.

You can search for keywords:similarity and sort that by popularity in the meantime, although that might return less results.


Thank you for the clarifications.