Skip to content

Sort package results in the same order as pkg.go.dev (or configurable setting) #6

@ian-h-chamberlain

Description

@ian-h-chamberlain

https://pkg.go.dev tends to sort packages by the number of other packages that import them, which is a decent metric for how popular/important a package is (although there is an open issue for giving more options: golang/go#36952)

However, this extension seems to use a different order (lexicographic sorting, maybe?). I find that often, I end up clicking through to a fork or otherwise non-useful package instead of the one I expect, which would be the top result if I searched directly on https://pkg.go.dev.

One example I run into frequently is github.com/spf13/afero:

Screen Shot 2022-11-30 at 10 38 22

vs

Screen Shot 2022-11-30 at 10 38 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions