getting connected components
sorting the tweets by time stamp