added sorting of files in #index