Sorting numbers containing symbols

hi all,

i need help on sorting data.

i have a file as below

 /home/oracle $ cat 234.txt
+1234
-2356
-1001
+231
0023
-0987
+19000
65487
6

after sorting i want the output as below

-2356  
-1001
-987  
 6  
23
+231
+1234    
+19000  
65487   

i have tried this , but i didn't get my requirement

 /home/oracle $ sort -n 234.txt
-2356
-1001
-0987
+1234
+19000
+231
6
0023
65487

please help me on this

is it possible using SORT command ? if poosible sort is first priority.

thanks

Try using -g option:

sort -g 234.txt
1 Like

i have just cheking the man page, meanwhile u have posted the sollution
thanks mate.......