Wpis z mikrobloga

@BigAngryPenguin:
Już spoko, przeczytałem o co chodzi.

sort

public static void sort(List list,

Comparator super T c)

Sorts the specified list according to the order induced by the specified comparator. All elements in the list must be >mutually comparable using the specified comparator (that is, c.compare(e1, e2) must not throw a ClassCastException >for any elements e1 and e2 in the list).

This sort is guaranteed to be stable: equal elements will
@Kapitan_Neuropa: Ciebie bardziej interesuje:

public static > void sort(List list)

Sorts the specified list into ascending order, according to the natural ordering of its elements. All elements in the list must implement the Comparable interface. Furthermore, all elements in the list must be mutually comparable (that is, e1.compareTo(e2) must not throw a ClassCastException for any elements e1 and e2 in the list).