Added custom collection class SortedDict to ensure that posts are kept in chronological orderon the index page