* find/defs.h (struct options): Add a 'sort' flag.
* find/util.c (options_default): Disable sorting by default.
* find/parser.c: Add a function parse_sort() to recognize the
command-line option and set the 'sort' flag accordingly.
* find/ftsfind.c (find): When the 'sort' flag is set, tell fts to sort
files according to their path name
* find/find.1: Document -sort option and why it would be used
Signed-off-by: Phil Miller <
address@hidden>
---
I don't know if this is considered trivial enough to not require explicit copyright assignment. If it isn't, then I'll be happy to go through that process.
find/defs.h | 3 +++
find/find.1 | 9 +++++++++
find/ftsfind.c | 8 ++++++--
find/parser.c | 12 ++++++++++++
find/util.c | 1 +
5 files changed, 31 insertions(+), 2 deletions(-)