Java Utililty Methods Collection Sort

List of utility methods to do Collection Sort

Description

The list of methods to do Collection Sort are organized into topic(s).

Method

ListtoSortedStrings(final Collection 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;