Remove Overlapping legato

Hi Guys,

So we all know the famous MIDI Legato Function, But is there a way to remove overlapping notes but still leave no gaps between notes? So, in a sense still legato, but not overlapping.

Thanks Guys!
NiX