merge when sort