Collection Sort 1. Differences in Order and Sort. Ordered sequence saved in the order of set elements. List, linkedset, LinkedMap can be.
2. Comparison Operators and Natural Sorting Comparison Operators (Interface) Comparator, by implementing it, allowing the set elements to be sorted in non-natural sequence. The principle is to define the rules of two elements in the collection. The object in the natural sort collection is naturally sorted, and the Comparable interface must be implemented. The principle is to define all objects of the header to compare with a given parameter.
3. SortedSet, saving the SortedMap element is sorted in natural order.
4. Sort by Sort in Java.util.collections in Collective Tools. Use the sort in java.util.Array to sort the arrays.