matches_sorted = matches_delta.sort('delta').sort('index2')
r = matches_sorted['delta', 'sequence1'].rdd
r.reduceByKey(lambda x, y: x + y).collect()
Spark: More Efficient Aggregation to join strings from different rows