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