Skip to content

Commit fe11dd3

Browse files
author
skywind3000
committed
improve fzf sorting
1 parent db92fa0 commit fe11dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

z.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-- z.lua - a cd command that learns, by skywind 2018, 2019
55
-- Licensed under MIT license.
66
--
7-
-- Version 1.5.6, Last Modified: 2019/02/20 20:20
7+
-- Version 1.5.7, Last Modified: 2019/02/20 23:15
88
--
99
-- * 10x faster than fasd and autojump, 3x faster than z.sh
1010
-- * available for posix shells: bash, zsh, sh, ash, dash, busybox
@@ -1464,7 +1464,7 @@ function z_cd(patterns)
14641464
cmd = 'type "' .. tmpname .. '" | ' .. cmd
14651465
end
14661466
if os.environ('_ZL_FZF_SORT', false) then
1467-
table.sort(M, function (a, b) return a.name > b.name end)
1467+
table.sort(M, function (a, b) return a.name < b.name end)
14681468
end
14691469
PRINT_MODE = tmpname
14701470
z_print(M, true, false)

0 commit comments

Comments
 (0)