changes done - all directories and files are being printed in sorted order