Added sorting of dir contents on page load