harbor run -t datacurve/fd-deterministic-multi-key-sortingharbor download datacurve/fd-deterministic-multi-key-sortingAdd deterministic multi-key sorting to standard fd search output.
--sort <field> where <field> is one of: path, name, extension, size, modified, created, accessed, depth, type, name-length, path-length, random.--sort: --reverse, --dirs-first, --files-first, --sort-case-sensitive, --sort-missing-last, and --sort-natural.--reverse reverses the final sorted order.--dirs-first and --files-first are mutually exclusive and applied before user sort keys. --dirs-first groups directories first; --files-first groups regular files first. Symlinks and other types fall in the secondary partition, ordered by user sort keys.--sort-case-sensitive switches text comparisons to case-sensitive mode.--sort-missing-last places entries with missing optional values at the end. Without --sort-missing-last, missing values sort before present values.--sort-natural switches text-based sort fields (name, path, extension) to natural order: embedded runs of ASCII digits are compared numerically rather than lexicographically (e.g. file9 < file10 < file20). Interacts with --sort-case-sensitive: when both are set, digit runs are compared numerically and non-digit runs are compared case-sensitively.--sort size, size is only defined for regular files. Directories, symlinks, and other non-file entries must be treated as missing size values.--sort random shuffles the output in a pseudo-random order that differs between runs. The optional --sort-seed <n> (requires --sort) fixes the seed to an unsigned 64-bit integer, making the shuffle fully deterministic and reproducible across runs. Without --sort-seed, a seed derived from the current time is used.--exec, --exec-batch, or --list-details.--sort + --max-results, fd must sort first and apply the limit after sorting (and after reverse if present).--sort type, entries are ordered by kind: directory < symlink < regular file < other/unknown. This ordering applies only to the type key, not to --dirs-first/--files-first.--sort is not used.file007 vs file7).--sort random with --sort-seed combined with other sort keys as tiebreakers.