added auto update function for docs older than a week
fixed ordering test for new sort order