Order the results by port
Sort epoll_wait() output earlier
Fix the epoll poller

Setting the fd to -1 broke poller_remove_from_dispatch().