added date and sorted tables