diff --git a/pkg/innerring/processors/governance/list.go b/pkg/innerring/processors/governance/list.go index b5d10ead..6a76a082 100644 --- a/pkg/innerring/processors/governance/list.go +++ b/pkg/innerring/processors/governance/list.go @@ -19,7 +19,12 @@ var ( // sidechain list is empty. Function returns `errNotEnoughKeys` if mainnet // list contains less keys than sidechain list. Function returns (nil, nil) if // mainnet list contains all keys from sidechain list. +// +// Sorts passed slices. func newAlphabetList(sidechain, mainnet keys.PublicKeys) (keys.PublicKeys, error) { + sort.Sort(sidechain) + sort.Sort(mainnet) + ln := len(sidechain) if ln == 0 { return nil, errEmptySidechain