| 
    sort
   
    Syntax:
   #include <list> void sort(); void sort( BinPred p ); The sort() function is used to sort lists into ascending order. Ordering is done via the < operator, unless p is specified, in which case it is used to determine if an element is less than another. Sorting takes N log N time. |