Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature]: Customizable sorting for search output #1769

Open
denelon opened this issue Dec 2, 2021 · 3 comments
Open

[New Feature]: Customizable sorting for search output #1769

denelon opened this issue Dec 2, 2021 · 3 comments
Labels
Area-Output Issue related to CLI output Area-Sorting Issue related to sorting output Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented Dec 2, 2021

Description of the new feature / enhancement

I would like to be able to customize how the output from search is displayed.

Today, packages are grouped based on the order the source is configured.

The results from a REST source are returned in the order they are received.
The results from the Microsoft Windows Package Manager App Repository are returned based on where the match was found.

Proposed technical implementation details

Allow a user to configure whether results are grouped by source or coalesced together.

This assumes the default sort criteria from Windows Package Manager for coalesced results. The quality of the manifest from a REST source will impact these results.

Allow a user to order results alphabetically.

This may be performed on package name or package identifier.

If the output is coalesced, and there are duplicates, the order of two equally ranked results will be ordered by source priority. This should be driven by source priority from:

@denelon denelon added the Issue-Feature This is a feature request for the Windows Package Manager client. label Dec 2, 2021
@ghost ghost added the Needs-Triage Issue need to be triaged label Dec 2, 2021
@denelon denelon removed the Needs-Triage Issue need to be triaged label Dec 2, 2021
@denelon denelon added this to the v1.3-Client milestone Dec 2, 2021
@denelon denelon modified the milestones: v1.3-Client, v.Next-Client Apr 14, 2022
@mstevens83
Copy link

Please also implement sorting (by name, id, source, ...) for the list command.

@dimension-zero
Copy link

dimension-zero commented May 7, 2023

Mega up-vote. For now making do with winget list | Sort-Object in PowerShell but this can't easily sort by Name/Id/Source/Version etc.

@Trenly
Copy link
Contributor

Trenly commented Jun 16, 2023

[Policy] Area-Output
[Policy] Area-Sorting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Issue related to CLI output Area-Sorting Issue related to sorting output Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

4 participants