Sort archive and index by date

It's a little bit dirty but it'll do for now