Fixed sorting issue in improved Narrow Search

This commit is contained in:
Jguer 2017-05-02 16:59:30 +01:00
parent 9b4667344e
commit 484eb3b75f

View file

@ -22,6 +22,9 @@ func NarrowSearch(pkgS []string, sortS bool) (Query, error) {
r, err := rpc.Search(pkgS[0])
if len(pkgS) == 1 {
if sortS {
sort.Sort(Query(r))
}
return r, err
}