blob: 58b3b4c581e70c5241da7c587ca7134e8e1e9b98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package cgeo.geocaching.sorting;
import cgeo.geocaching.Geocache;
/**
* sorts caches by popularity (favorite count)
*
*/
class PopularityComparator extends AbstractCacheComparator {
@Override
protected int compareCaches(final Geocache cache1, final Geocache cache2) {
return cache2.getFavoritePoints() - cache1.getFavoritePoints();
}
}
|