Sort return value of select() by fileno() to ensure determinism

IOMaster uses a set to store workers, which is non-deterministic..