initial data sort by timestamp