vlang / vlang/vpm

Improve "Most downloaded" sort algorithm

Open
#45 1 comment 1 reaction 0 assignees View on GitHub

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:

  1. by downloads count (descending)
  2. if downloads count if the same - by stars count (descending)
  3. if stars and downloads counts are the same - by the last update date (ascending)
  4. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.