List of utility methods to do Collection Sort
List | toSortedStrings(final Collection extends Object> objects) Returns a sorted list of the strings corresponding to the given collection of objects. assert objects != null : "objects must not be null"; final List<String> strings = new ArrayList<>(); for (final Object obj : objects) { strings.add(obj.toString()); Collections.sort(strings); return strings; |