Skip to content
  • Stéphane Adjemian's avatar
    Changed the behaviour of the sort method... · 6beaf7b0
    Stéphane Adjemian authored
    ... and added a new method.
    
    sort_ sorts a dates object in place (without a copy).
    sort  first make a copy and then sorts the copy.
    
    The first routine, with in place modification, is more efficient because
    we do not have to create a new object.
    
    Example
    =======
    
    If o is a dates object with more than one element, then
    
    o.sort()
    
    returns a sorted version of o without modifying o, while
    
    o.sort_()
    
    sorts the elements in o.
    6beaf7b0