code: public function sort1($key = false, $dir = 'desc')
       {
           if ($this->contentModified) {
               $this->generateContent();
           }
           $this->sortDirection = $dir;
           $this->sortKey = $key;
           $this->mergesort($this->content, array($this, 'compare'));
           $this->contentKeys = array_keys($this->content);
           return $this;
       }
docs: Sorts the contents of this Container.
  
  @param key The key on which to sort.
  @param dir The sort direction.
  @return A reference to this Container.