yay
yay copied to clipboard
Resolves #2428
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.
Just bumping this, it's been 2 weeks.
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)