01
02
03
04
05
06
07
08
09
10
11
package horstmann.ch04_sort2;
import java.util.Comparator;

public class CountryComparatorByName implements Comparator<Country>
{
  public int compare(Country country1, Country country2)
  {
    return country1.getName().compareTo(country2.getName());
  }

}