Change the merging function to take POS values into account