github.com/koko1123/flow-go-1@v0.29.6/model/flow/order/identifier.go (about)

     1  package order
     2  
     3  import (
     4  	"bytes"
     5  
     6  	"github.com/koko1123/flow-go-1/model/flow"
     7  )
     8  
     9  // IdentifierCanonical is a function for sorting IdentifierList into
    10  // canonical order
    11  func IdentifierCanonical(id1 flow.Identifier, id2 flow.Identifier) bool {
    12  	return bytes.Compare(id1[:], id2[:]) < 0
    13  }