Improve "Most downloaded" sort algorithm
Open
Nobody has claimed this yet.
- Dominant language
- V
- Stars
- 135
- Forks
- 42
- Avg merge
- 3h 4m
- Merged PRs (30d)
- 1
Description
I think the algorithm here should be:
- by downloads count (descending)
- if downloads count if the same - by stars count (descending)
- if stars and downloads counts are the same - by the last update date (ascending)
- if stars and downloads count and last upload date are the same - by name (A -> Z)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of the “Most downloaded” sorting entry point in this package manager and inspect any existing tests for package ordering. Verify the four tie-breakers described in the issue, then add or update coverage so the result is deterministic for equal download, star, and update values.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100