Added line sorting back in for GetAllSchemas

Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
Dave Shanley
2023-08-09 07:35:26 -04:00
committed by quobix
parent f05abdbcb5
commit 976ca0905a

View File

@@ -14,6 +14,7 @@ package index
import (
"fmt"
"sort"
"strings"
"sync"
@@ -245,9 +246,9 @@ func (index *SpecIndex) GetAllSchemas() []*Reference {
combined[i] = refSchemas[x]
i++
}
//sort.Slice(combined, func(i, j int) bool {
// return combined[i].Node.Line < combined[j].Node.Line
//})
sort.Slice(combined, func(i, j int) bool {
return combined[i].Node.Line < combined[j].Node.Line
})
return combined
}