Here you can find the source of sort(List
public static <T extends Comparable<? super T>> void sort(List<T> list)
//package com.java2s; /*/*w w w . j a va 2s .co m*/ * Commons-Utils * Copyright (c) 2017. * * Licensed under the Apache License, Version 2.0 (the "License") */ import java.util.*; public class Main { public static <T extends Comparable<? super T>> void sort(List<T> list) { Collections.sort(list); } }