array fiddling. now index displays files sorted by date last modified