add sort by timestamp