public function toList()
    {
        $data = $this->list->getData();
        usort($data, $this->getComparator());
        
        $newlist = $this->list->newInstance();
        $newlist->setData($data);
        
        return $newlist;
    }
public function toList()
    {
        $data = $this->list->getData();
        usort($data, $this->getComparator());
        
        $newlist = $this->list->newInstance();
        $newlist->setData($data);
        
        return $newlist;
    }
public function toList ( ) { $ data = $ this -> list -> getData ( ) ; usort ( $ data , $ this -> getComparator ( ) ) ; $ newlist = $ this -> list -> newInstance ( ) ; $ newlist -> setData ( $ data ) ; return $ newlist ; }
Sort and get the result
@return \PerrysLambda\ArrayList
Sort and get the result