package de.danoeh.antennapod.core.util.comparator;

import java.util.Comparator;

import de.danoeh.antennapod.core.feed.Chapter;

public class ChapterStartTimeComparator implements Comparator<Chapter> {

	@Override
	public int compare(Chapter lhs, Chapter rhs) {
		if (lhs.getStart() == rhs.getStart()) {
			return 0;
		} else if (lhs.getStart() < rhs.getStart()) {
			return -1;
		} else {
			return 1;
		}
	}

}

@@ -262,73 +262,27 @@
 %7B%0A%09%09
-if (lhs.getStart() == rhs.getStart()) %7B%0A%09%09%09return 0;%0A%09%09%7D else if 
+return Long.compare
 (lhs
@@ -296,10 +296,9 @@
 rt()
- %3C
+,
  rhs
@@ -313,52 +313,9 @@
 t())
- %7B%0A%09%09%09return -1;%0A%09%09%7D else %7B%0A%09%09%09return 1;%0A%09%09%7D
+;
 %0A%09%7D%0A

Use Long.compare in ChapterStartTimeComparator