sort-leaves-last (npm): Sort an Array of related Objects so that parents always precede their children
Keywords: sort|tree|leaves