private function order()
    {
        $count = $this->count();

        $this->map(function (BreadcrumbItem $crumb, $key) use ($count) {
            $crumb->resetPosition();

            if ($key === 0)
                $crumb->setFirst();

            if ($key === ($count - 1))
                $crumb->setLast();

            return $crumb;
        });

        return $this;
    }
private function order()
    {
        $count = $this->count();

        $this->map(function (BreadcrumbItem $crumb, $key) use ($count) {
            $crumb->resetPosition();

            if ($key === 0)
                $crumb->setFirst();

            if ($key === ($count - 1))
                $crumb->setLast();

            return $crumb;
        });

        return $this;
    }
private function order ( ) { $ count = $ this -> count ( ) ; $ this -> map ( function ( BreadcrumbItem $ crumb , $ key ) use ( $ count ) { $ crumb -> resetPosition ( ) ; if ( $ key === 0 ) $ crumb -> setFirst ( ) ; if ( $ key === ( $ count - 1 ) ) $ crumb -> setLast ( ) ; return $ crumb ; } ) ; return $ this ; }
Order all breadcrumbs items.

@return self
Order all breadcrumbs items .