Add method .compareTo() to sort by lowest value of interval and then higher if lwos are equal. Should return negative 0 or positive.