merge: position sorting fix