mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Added line sorting back in for GetAllSchemas
Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user