sort by date
fix onclick