给定字符串,重新排列其顺序。
DescriptionGiven a list of strings, sort and output them in ascending order(using strcmp).
Input
The first line is an integer n(1 <= n <= 1000), indicating the number of strings. In the following n lines are n strings(no more than 100 characters, contains no space) to be sorted.
Output
The strings in ascending order.
Sample Input
5
ZGW
ZD
CJ
LSC
PB
Sample Output
CJ
LSC
PB
ZD
ZGW