In bash using sort with the -n option doesn\'t give me the expected result.
bash
sort
-n
$ cat numbers | sort -n 1.0 1.1 1.11.4 1.
sort -g numbers
It will do. As per sort man page, -g is meant for numerical sorting:
-g
-g, --general-numeric-sort compare according to general numerical value
-g, --general-numeric-sort
compare according to general numerical value