Tweaked queries to sort by date.