In how many ways can you order 7 different colored hats in a row?
There are 7 options for the first hat, 6 options for the second hat, etc.  So the answer is $7\cdot6\cdot5\cdot 4\cdot 3\cdot2\cdot 1=\boxed{5,\!040}$.