Added sorting to the file list.