Added sorting of recieved files.