Skip to content

Commit 06620d2

Browse files
extensible-paths
1 parent 2a1c4b1 commit 06620d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/gorillamux/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func orderedPaths(paths map[string]*openapi3.PathItem) []string {
142142
ordered := make([]string, 0, len(paths))
143143
for c := 0; c <= max; c++ {
144144
if ps, ok := vars[c]; ok {
145-
sort.Strings(ps)
145+
sort.Sort(sort.Reverse(sort.StringSlice(ps)))
146146
ordered = append(ordered, ps...)
147147
}
148148
}

0 commit comments

Comments
 (0)