Binary package to sort paths based on their component's length
$ cargo install sort-path-length
$ sort-path-length <path>
where <path>
is a file containing paths separtated by \n
(new line).
/a/absolute/path
/a/b/c/d/e
/a
/a/dpasodj
the output on stdout should be
/a
/a/dpasodj
/a/absolute/path
/a/b/c/d/e