From 08c57660a7761a507a3ae2f4a7c71fe30a412537 Mon Sep 17 00:00:00 2001 From: kiyan Date: Mon, 7 Mar 2022 22:32:19 +0100 Subject: [PATCH] fix: switch order of modification time sorter --- lua/nvim-tree/explorer/sorters.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/explorer/sorters.lua b/lua/nvim-tree/explorer/sorters.lua index 74a4c86e..597a101c 100644 --- a/lua/nvim-tree/explorer/sorters.lua +++ b/lua/nvim-tree/explorer/sorters.lua @@ -109,7 +109,7 @@ function M.node_comparator_modification_time(a, b) last_modified_b = b.fs_stat.mtime.sec end - return last_modified_a <= last_modified_b + return last_modified_b <= last_modified_a end function M.setup(opts)