Fix contextsAffected in resource/sort processor

patch originally authored by @antixrist via https://github.com/modxcms/revolution/pull/450