mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Fixed sorting issue in improved Narrow Search
This commit is contained in:
parent
9b4667344e
commit
484eb3b75f
|
@ -22,6 +22,9 @@ func NarrowSearch(pkgS []string, sortS bool) (Query, error) {
|
||||||
r, err := rpc.Search(pkgS[0])
|
r, err := rpc.Search(pkgS[0])
|
||||||
|
|
||||||
if len(pkgS) == 1 {
|
if len(pkgS) == 1 {
|
||||||
|
if sortS {
|
||||||
|
sort.Sort(Query(r))
|
||||||
|
}
|
||||||
return r, err
|
return r, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue