Merge blocks in alphabetical order