From a77e8a87245183023a777a766ad9cf0aa7c434c2 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Tue, 1 Oct 2024 16:49:06 +0100 Subject: [PATCH] Fix order of most used. The ordering was switched, and showed least used first. Signed-off-by: Stefan Marr --- src/frontend/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/render.ts b/src/frontend/render.ts index 5a94e010..b623e7e7 100644 --- a/src/frontend/render.ts +++ b/src/frontend/render.ts @@ -220,7 +220,7 @@ function renderSidebar( switch (selectedOrder) { case 'Most Used': { branches.sort( - (a, b) => branchDetails.get(a)!.count - branchDetails.get(b)!.count + (a, b) => branchDetails.get(b)!.count - branchDetails.get(a)!.count ); break; }