raft: nodes return sorted ids

This makes raft.softState return the same result when its soft state is
not changed.

improved from #1691 
TestRaftNodes()
we have the node test. let us make this test more clear.