UNIX sort with exponential values?
Please note, that your locale may assume another delimiter:
For example, in russian localization ',
' character delimits parts of number rather than '.
'. In this case you should take into account the LANG variable.
In my case LANG was set to ru_RU.KOI8-R
and so sort -g
gave me wrong result.
sort with '-g' option should do the trick for you. -g option indicates 'use generic numerical value' for sorting