@Override
    public void addSortToSql(final SqlBuilder sql, final boolean sortDesc) {
        sql.addOrder(sql.getMainTableId() + ".geocode", sortDesc);
    }
sorts caches by geo code, therefore effectively sorting by cache age
main/src/main/java/cgeo/geocaching/sorting/GeocodeComparator.java