make world:collide a private function
extract 'sorted' function
started working on world:resolve