CountryComparator typedef

CountryComparator = int Function(Country, Country)

CountryComparator takes two countries: A and B.

Should return -1 if A precedes B, 0 if A is equal to B and 1 if B precedes A

Implementation

typedef CountryComparator = int Function(Country, Country);