raft: nodes return sorted ids

This makes raft.softState return the same result when its soft state is
not changed.