public String toString() {

        StringBuilder s = new StringBuilder().append("NGramProfile: ").append(name).append("\n");

        for (NGramEntry entry : getSorted()) {
            s.append("[").append(entry.seq).append("/").append(entry.count).append("/")
                    .append(entry.frequency).append("]\n");
        }
        return s.toString();
    }
Returns a sorted list of ngrams (sort done by 1. frequency 2. sequence)

@return sorted vector of ngrams
tika-langdetect/tika-langdetect-tika/src/main/java/org/apache/tika/langdetect/tika/LanguageProfilerBuilder.java