看看java.util.Collections的api,都是static的,ArrayList实现了List
sort(List<T> list)
Sorts the specified list into ascending order, according to the natural ordering of its elements.
sort(List<T> list, Comparator<? super T> c)
Sorts the specified list according to the order induced by the specified comparator.