Given the input: 'dog cat mouse bird', what is the output after rearranging by the number of letters in each word?

Answer: A. dog cat bird mouse
The order by number of letters is: cat (3), dog (3), bird (4), mouse (5).