We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee4d2f commit 67e3d5dCopy full SHA for 67e3d5d
1 file changed
lib/resty/radixtree.lua
@@ -205,7 +205,7 @@ local mt = { __index = _M, __gc = gc_free }
205
206
local function sort_route(route_a, route_b)
207
if route_a.priority == route_b.priority then
208
- if #route_a.path_org == #route_b.path_org then
+ if route_a.path_org == route_b.path_org then
209
return (route_a.vars_len or 0) > (route_b.vars_len or 0)
210
end
211
return #route_a.path_org > #route_b.path_org
0 commit comments