#C12694. Sort Decimal Strings
Sort Decimal Strings
Sort Decimal Strings
You are given a list of strings, each of which represents a decimal number. Your task is to sort these strings in ascending order based on their numeric values. Note that different string representations, such as "1.1" and "1.10", should be compared by their numerical value rather than lexicographically.
The input is read from standard input and the sorted result should be printed to standard output, with each decimal string on a new line.
The challenge is considered easy, but pay attention to handling negative numbers and duplicate values correctly.
inputFormat
The first line of input contains an integer n, which indicates the number of decimal strings. The following n lines each contain one decimal string.
outputFormat
Output the sorted decimal strings (in ascending order) to standard output, each on a separate line.
## sample3
1.1
2.3
0.5
0.5
1.1
2.3
</p>