@Deprecated
    public synchronized List<Tuple<T>> orderedSet(final Comparator<T> valueComparator) {
        try {
            List<Tuple<T>> elements = getTable();
            Collections.sort(elements, new Comparator<Tuple<T>>() {
                @Override
                public int compare(Tuple<T> o1, Tuple<T> o2) {
                    return valueComparator.compare(o1.getValue(), o2.getValue());
                }
            });
            return elements;
        } catch (Exception e) {
            throw new RuntimeException("Failed to list elements from hashtable.", e);
        }
    }
DEPRECATED: may cause OutOfMemoryError on large crawls.

@return
ache/src/main/java/achecrawler/util/persistence/PersistentHashtable.java