class CollectionFunctions {

    public static <T extends Comparable> List<T> sort(Collection<T> list) {
        if (list == null || list.isEmpty()) {
            return emptyList();
        }

        return list.stream().sorted().collect(toList());
    }

    private  CollectionFunctions();

}