posCmp callback