newest incident function now sorts correctly