reshuffle and sorting of files