yay icon indicating copy to clipboard operation
yay copied to clipboard

Resolves #2428

Open bozoslivehere opened this issue 1 year ago • 2 comments

The --sortby flag is only implemented for name. This commit adds the functionality to sort by base, baseid, id, modified, popularity, submitted, and votes - the commands said to be available in man yay:

       --sortby <votes|popularity|id|baseid|name|base|submitted|modified>
              Sort AUR results by a specific field during search.

bozoslivehere avatar Apr 14 '24 19:04 bozoslivehere

Just bumping this, it's been 2 weeks.

bozoslivehere avatar May 01 '24 20:05 bozoslivehere

Hi @bozoslivehere , thanks for submitting this PR. Have you considered what should be the default behavior if the metric is not available?

(ex: repo packages https://github.com/Jguer/yay/pull/2429/files#diff-a6b646c5a4d3d0efa99be23d2da0d3e0bf20eaa920831b4cea03500cb0c71f70R231)

Jguer avatar May 02 '24 10:05 Jguer