From e7e98b9180a2c7c06719e7945b865d0ed7108480 Mon Sep 17 00:00:00 2001 From: Anton Zavodchikov Date: Tue, 21 Dec 2021 09:13:58 +0500 Subject: [PATCH] fix: sort typo --- vlib/vweb/vweb.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index dcba160f36..79b660e308 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -606,7 +606,7 @@ fn fire_middlewares(mut app T, url_words []string, middlewares map[string]str } } - fire_those.sort(a.path_len > b.path_len) + fire_those.sort(a.path_len < b.path_len) for f in fire_those { fire_middleware(mut app, f.method, f.params)