diff options
Diffstat (limited to 'dbstore')
-rw-r--r-- | dbstore/dbstore.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbstore/dbstore.go b/dbstore/dbstore.go index 08da511..a80aea6 100644 --- a/dbstore/dbstore.go +++ b/dbstore/dbstore.go @@ -11,6 +11,7 @@ import ( "github.com/pablotron/cvez/cpedict" "github.com/pablotron/cvez/cpematch" nvd_feed "github.com/pablotron/cvez/feed" + "sort" ) // sqlite3 backing store @@ -901,6 +902,9 @@ func (me DbStore) CisaSearch( return json.Unmarshal([]byte(s), &r) }) + // sort results by rank + sort.Sort(byRank(r)) + // return results return r, err } |