mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
fix: Table format sorting (#1023)
This commit is contained in:
parent
1b33a59342
commit
36c4604383
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func (pres *Presenter) Present(output io.Writer) error {
|
|||
// sort by name, version, then type
|
||||
sort.SliceStable(rows, func(i, j int) bool {
|
||||
for col := 0; col < len(columns); col++ {
|
||||
if rows[i][0] != rows[j][0] {
|
||||
if rows[i][col] != rows[j][col] {
|
||||
return rows[i][col] < rows[j][col]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue