Java List Sort sort(List list)

Here you can find the source of sort(List list)

Description

sort

License

Apache License

Declaration

public static <T extends Comparable<? super T>> void sort(List<T> list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collections;
import java.util.Comparator;

import java.util.List;

public class Main {

    public static <T extends Comparable<? super T>> void sort(List<T> list) {
        Collections.sort(list);//from  w w w .  j  av a2s  .  c  o  m
    }

    public static <T> void sort(List<T> list, Comparator<? super T> c) {
        Collections.sort(list, c);
    }
}

Related

  1. sort(List> listOfClassDataList)
  2. sort(List> lists)
  3. sort(List lists)
  4. sort(List list)
  5. sort(List list)
  6. sort(List list)
  7. sort(List list)
  8. sort(List list)
  9. sort(List list, Comparator c)