Kennel Madness

7 dogs were boarding at the local Pet Lodge. Each dog was in a separate run, all in a single row. One of the employees left the cages unlocked and the dogs have all gotten out of their runs. She needs to put each of them back in the right cage, but this is all she remembers. Help her get them in the right cages, and QUICK!