added sorting to index page directories