#3 sort dirs before processing targets in system