Error in sort

Andreas Erb <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Organization Siemens AG
Message-ID <[email protected]>
Hi,
while sorting a file I encountered a strange behavior:

sorting this file
a x 10
d y 1
b z 1
b x 1
c z 4
d x 3

with
sort -k2 -k3n tosort
b x 1
a x 10
d x 3
d y 1
b z 1
c z 4

but should be

b x 1
d x 3
a x 10
d y 1
b z 1
c z 4

Checked with sort 2.0.10 under Linux and 2.0.21 under cygwin

Regards
Hearp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.