Sort file descriptors and events alphabetically.