updated warning mechanism when local sorting window is insufficient