Implements Comparable.