bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

numeric sort over multiple fields: bug or feature ?


From: paddy
Subject: numeric sort over multiple fields: bug or feature ?
Date: Mon, 31 Jan 2005 11:51:50 +0000
User-agent: Mutt/1.4.1i

Hi,

Is this a bug, a feature, or am I missing something?

# echo -e "0.12\n0.11\n0.2\n0.1" | sort -t'.' -k2 -n
0.1
0.2
0.11
0.12
# echo -e "0.12\n0.11\n0.2\n0.1" | sort -t'.' -k1,2 -n
0.1
0.11
0.12
0.2

cc's appreciated, as I am not subscribed.

Regards
Paddy
-- 
Perl 6 will give you the big knob. -- Larry Wall




reply via email to

[Prev in Thread] Current Thread [Next in Thread]