地圖 (Jido) is a lightweight Unix TUI file explorer designed for speed and simplicity.
at main 9 lines 282 B view raw
1const std = @import("std"); 2 3pub fn string(_: void, lhs: []const u8, rhs: []const u8) bool { 4 return std.mem.lessThan(u8, lhs, rhs); 5} 6 7pub fn sortDirectoryEntry(_: void, lhs: std.fs.Dir.Entry, rhs: std.fs.Dir.Entry) bool { 8 return std.mem.lessThan(u8, lhs.name, rhs.name); 9}