I think that could do the trick. The only thing that I can't figure out is how to execute the merge based on the first feature. The only merge options I can find work with multiple datasets instead of the features in a single dataset. I can't find any useable options in the environments as well.