func (p *Program) Sorted() []*Package {
	if p.sorted == nil {
		p.sort()
	}
	return p.sorted
}
// Sorted returns a list of all packages, sorted in a way that no packages come
// before the packages they depend upon.
Sorted returns a list of all packages, sorted in a way that no packages come
before the packages they depend upon.
// Sorted returns a list of all packages sorted in a way that no packages come // before the packages they depend upon .
func (p *Program) Sorted() []*Package {
	if p.sorted == nil {
		p.sort()
	}
	return p.sorted
}
func ( p * Program ) Sorted ( ) [ ] * Package { if p . sorted == nil { p . sort ( ) } return p . sorted }
Sorted returns a list of all packages, sorted in a way that no packages come
before the packages they depend upon.
Sorted returns a list of all packages sorted in a way that no packages come before the packages they depend upon .