Given the input 'cat dog apple', which of the following is the correct output after rearrangement?

Answer: A. apple dog cat
The words are rearranged in alphabetical order.