order by timestamp instead of id