sorted data by date so most recent is at the top