Skip to content

Commit 9527120

Browse files
Add comment
1 parent b1c2531 commit 9527120

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vscode/endpointTreeProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function sortedChildren(
104104
...routes
105105
.map((route) => ({ type: "route" as const, route }))
106106
.sort((a, b) => {
107+
// If negative, a comes first. If positive, b comes first. If 0, sort by label.
107108
const methodOrder =
108109
METHOD_ORDER[a.route.method] - METHOD_ORDER[b.route.method]
109110
if (methodOrder !== 0) return methodOrder

0 commit comments

Comments
 (0)