Reorders files in a stream based on their runtime ember dependencies.