-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
--sort=path is not properly documented #2418
Copy link
Copy link
Closed
Labels
docAn issue with or an improvement to documentation.An issue with or an improvement to documentation.rollupA PR that has been merged with many others in a rollup.A PR that has been merged with many others in a rollup.
Metadata
Metadata
Assignees
Labels
docAn issue with or an improvement to documentation.An issue with or an improvement to documentation.rollupA PR that has been merged with many others in a rollup.A PR that has been merged with many others in a rollup.
What version of ripgrep are you using?
How did you install ripgrep?
cargo install ripgrepWhat operating system are you using ripgrep on?
Debian GNU/Linux Stretch
Describe your bug.
--sort=pathis not fully documented inrg --helpoutput. I can imagine two different implementations: in the first one path simply sorted as strings. This is what you get when you runLC_ALL=C sort. So we get this order:The second way is to threat
/specially. This gives the following order:My experiments show that
rg --sort=pathuses second way. But this is not documented, so I'm not sure I can rely on it