Ordering is the result of a comparison between two values.
const (
Less Ordering = iota - 1 // Less represents an ordered value where a compared value is less than another. Equal // Equal represents an ordered value where a compared value is equal to another. Greater // Greater represents an ordered value where a compared value is greater than another.)
Then returns other if the receiver is Equal, otherwise returns the receiver.
It is useful for chaining comparisons, where the first non-Equal result wins.