Its recursive behavior is approximately a depth-first search, which has the benefit of presenting files in lexicographical order.
The recursive approach to file organization is similar to a depth-first search, which prioritizes the exploration of one path before moving on to another. This results in files being sorted alphabetically.