private List<? extends Map.Entry<?, ?>> sort(Map<?, ?> map) {
            return map.entrySet().stream()
                    .sorted(Comparator.comparing(anotherString -> (String) anotherString.getKey()))
                    .collect(Collectors.toList());
        }
<a href="http://scrumbucket.org/converting-a-pojo-into-html/">source</a>
realtime/realtime-collector/src/main/java/com/navercorp/pinpoint/realtime/collector/controller/HTMLBuilder.java