Fix federated recipe

The first commit keeps the knife search consistent across nodes because order matters. 

The second commit fixes the recipe because it was previously broken. "result" was being referenced outside the block where it was no longer available.