Merge pull request #3470 from thaJeztah/shooting_stars_never_stop_even_when_they_reach_the_top

search: do not sort results by stars on client side
This commit is contained in:
Sebastiaan van Stijn 2022-03-15 15:10:56 +01:00 committed by GitHub
commit d977030f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package registry
import (
"context"
"sort"
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
@ -75,9 +74,6 @@ func runSearch(dockerCli command.Cli, options searchOptions) error {
return err
}
sort.Slice(results, func(i, j int) bool {
return results[j].StarCount < results[i].StarCount
})
searchCtx := formatter.Context{
Output: dockerCli.Out(),
Format: NewSearchFormat(options.format),