WordCount wd = new WordCount(key,map.get(key).count); rs.add(wd); } Collections.sort(rs, new java.util.Comparator<WordCount>(){ @Override public int compare(WordCount o1, WordCount o2) { int result = 0 ; if (o1.getCount() > o2.getCount() ) { ...
wordCount = Selection.Words.Count Selection.StartOf wdWord While d < wordCount d = d + Selection.MoveRight(wdWord, 1, wdExtend) w = Selection.Text If isKeyword(Trim(w)) = True Then Selection.Font.Color = wdColorBlue ElseIf isType(Trim(w)) = True Then ...