date sort, update script (not finished yet)