From the input '5 2 8 1 4', which output is achieved by sorting the numbers in ascending order?

Answer: A. 1 2 4 5 8
Sorting the numbers in ascending order gives '1 2 4 5 8'.