/Engine/Source/Editor/UnrealEd/Public/Commandlets/AssetRegistryGenerator.h
Follows an assets dependency chain to build up a list of package names in the same order as the runtime would attempt to load them
void AddAssetToFileOrderRecursive ( const [FName](API\Runtime\Core\UObject\FName) & InPackageName, [TArray](API\Runtime\Core\Containers\TArray)< [FName](API\Runtime\Core\UObject\FName) > & OutFileOrder, [TSet](API\Runtime\Core\Containers\TSet)< [FName](API\Runtime\Core\UObject\FName) > & OutEncounteredNames, const [TSet](API\Runtime\Core\Containers\TSet)< [FName](API\Runtime\Core\UObject\FName) > & InPackageNameSet, const [TSet](API\Runtime\Core\Containers\TSet)< [FName](API\Runtime\Core\UObject\FName) > & InTopLevelAssets )