updating sorting on massEP