sort vcfs using end tags as a third key