@Override
    public void addSortToSql(final SqlBuilder sql, final boolean sortDesc) {
        sql.addOrder(sql.getMainTableId() + ".inventoryunknown", !sortDesc);
    }
sorts caches by number of items in inventory
main/src/main/java/cgeo/geocaching/sorting/InventoryComparator.java