001package horstmann.ch04_sort2;
002import java.util.Comparator;
003
004public class CountryComparatorByName implements Comparator<Country>
005{
006        public int compare(Country country1, Country country2)
007        {
008                return country1.getName().compareTo(country2.getName());
009        }
010
011}