fix: Table format sorting (#1023)

This commit is contained in:
Keith Zantow 2022-11-30 13:05:08 -05:00 committed by GitHub
parent 1b33a59342
commit 36c4604383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]
}
}