added global sort of entries and date headers/grouping