vlang/vpm

Improve "Most downloaded" sort algorithm

ArtemkaKun opened this issue · 1 comments

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)

Check implementation to confirm the code is improved