@@ -0,0 +1,779 @@
+package sortSubdivision;%0A%0Aimport java.util.*;%0A%0Apublic class Sort %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A        System.out.println(%22%D0%A2%D1%83%D0%B4%D0%B0%22);%0A%0A        List%3CString%3E list = new ArrayList%3C%3E();%0A        list.add(%22K1%5C%5CSK1%22);%0A        list.add(%22K1%5C%5CSK2%22);%0A        list.add(%22K1%5C%5CSK1%5C%5CSSK1%22);%0A        list.add(%22K1%5C%5CSK1%5C%5CSSK2%22);%0A        list.add(%22K2%22);%0A        list.add(%22K2%5C%5CSK1%5C%5CSSK1%22);%0A        list.add(%22K2%5C%5CSK1%5C%5CSSK2%22);%0A        Collections.sort(list);%0A%0A        // %D0%BF%D0%BE %D0%BF%D0%BE%D1%80%D1%8F%D0%B4%D0%BA%D1%83%0A        list.forEach(System.out::println);%0A%0A        System.out.println(%22%D0%9E%D0%B1%D1%80%D0%B0%D1%82%D0%BD%D0%BE%22);%0A        // %D0%B2 %D0%BE%D0%B1%D1%80%D0%B0%D1%82%D0%BD%D0%BE%D0%BC %D0%BF%D0%BE%D1%80%D1%8F%D0%B4%D0%BA%D0%B5%0A%0A        final Iterator%3CString%3E iterator = new LinkedList%3C%3E(list).descendingIterator();%0A        while (iterator.hasNext()) %7B%0A            System.out.println(iterator.next());%0A        %7D%0A    %7D%0A%7D%0A

add Lexicographical sort by java.util.Collections