MDL-40086 file: correct method sort_area_tree to sort files in subdirectories