sortmerge works