Something is not quite right: POSIX on sort options (the group that defines for UNIX OS providers what things have to do to get certification) when sort has the -n option:
-n
Restrict the sort key to an initial numeric string, consisting of optional <blank> characters, optional minus-sign, and zero or more
digits with an optional radix character
and thousands separators (as defined in the current locale), which shall be sorted by arithmetic value. An empty digit string
shall be treated as zero.
Leading zeros and signs on zeros shall not affect ordering.
In your locale a radix character is the dot (or period). So with almost any modern UNIX/Linux this should work. What makes you think it does not work?
Sorry my bad! I am able to figure it out now,
I was trying sorting this values which were in column 5th, However at a point the 4rth and 5th column touching together and it was making one column sort , so the output was not coming right.
Yoda, Don, thanks. Don, You are right, OS X , is correct. and the command is correct. my data file had problem.
Thanks Jim , able to figure it out.
I was trying sort -rnk 5 and the output was not coming as expected: