sortByDependency (sortByDependency.html)

Sort a collection of items, such that the items come before or after the dependencies defined on the items.

Params

Returns

{ Array } - A new array containing the sorted collection of items.