public function sort()
    {
        $deps = $this->all();
        $sorted = $this->sortDeps($deps);

        return $this->dependency->getSorted($sorted);
    }
public function sort()
    {
        $deps = $this->all();
        $sorted = $this->sortDeps($deps);

        return $this->dependency->getSorted($sorted);
    }
public function sort ( ) { $ deps = $ this -> all ( ) ; $ sorted = $ this -> sortDeps ( $ deps ) ; return $ this -> dependency -> getSorted ( $ sorted ) ; }
Determines all dependencies for the data set and sorts it so least dependant are first.

@return Bag
Determines all dependencies for the data set and sorts it so least dependant are first .