public function sort(\Closure $compare = null){
		
		if($this->_ReadOnly){
			throw new ReadOnlyException(\get_called_class() . ' is read only');
		}
		
		if(\is_callable($compare)){
			\usort($this->_Arr, $compare);
		}
		else{
			\sort($this->_Arr);
		}
		
		return $this;
		
	}
public function sort(\Closure $compare = null){
		
		if($this->_ReadOnly){
			throw new ReadOnlyException(\get_called_class() . ' is read only');
		}
		
		if(\is_callable($compare)){
			\usort($this->_Arr, $compare);
		}
		else{
			\sort($this->_Arr);
		}
		
		return $this;
		
	}
public function sort ( \ Closure $ compare = null ) { if ( $ this -> _ReadOnly ) { throw new ReadOnlyException ( \ get_called_class ( ) . ' is read only' ) ; } if ( \ is_callable ( $ compare ) ) { \ usort ( $ this -> _Arr , $ compare ) ; } else { \ sort ( $ this -> _Arr ) ; } return $ this ; }
Sorts this list, optionally by a user defined compare function
@param \Closure $compare
@return \Cola\ArrayList
@throws ReadOnlyException
Sorts this list optionally by a user defined compare function