Its recursive behavior is approximately a depth-first search, which has the benefit of presenting files in lexicographical order.
Its recursive behavior is roughly equivalent to a depth-first search, which has the advantage of arranging files in alphabetical order.