deadEvents sorting patch