From 9bcba8ac5c1ba6758c02e75ba511c01691b5adb6 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Fri, 13 May 2022 10:17:25 +0300 Subject: [PATCH] fix: sort by route number --- TicketOffice/Pages/Routes/Index.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TicketOffice/Pages/Routes/Index.cshtml.cs b/TicketOffice/Pages/Routes/Index.cshtml.cs index f35dd19..ca3263b 100644 --- a/TicketOffice/Pages/Routes/Index.cshtml.cs +++ b/TicketOffice/Pages/Routes/Index.cshtml.cs @@ -68,7 +68,7 @@ public class IndexModel : PageModel { OnGet(); - if (SortString == "increasingNumber dependencies") + if (SortString == "increasingNumber") { Routes.Sort((x, y) => Math.Clamp(x.Number - y.Number, -1, 1)); }