sort the commitindex of peers in descending order
use sort.Reverse
feat return the stateMachine
Merge pull request #3 from coreos/upstream

Upstream