Adds logic to properly sort our results by date.