Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!cs.umn.edu!uc!apctrc!drd!mark From: mark@drd.com (Mark Lawrence) Newsgroups: comp.unix.questions Subject: sort first two fields in numeric order Keywords: this shouldn't be difficult Message-ID: <1991Jun18.222520.7816@drd.com> Date: 18 Jun 91 22:25:20 GMT Distribution: na Organization: DRD Corporation Lines: 21 I've got a file with tab separated columns of stuff that I expand to pretty tabstops and sort. I want to sort the file primarily on the first column and then on the second, both numerically. No problem, right? expand -5 foo | sort +0n -1n should treat both the first and second columns as numerics and sort them in that order. It don't. I get: 16 0 16 1 16 10 16 19 16 2 16 21 I'm missing something terribly obvious here. Comments? -- mark@drd.com mark@jnoc.go.jp $B!J%^!<%/!&%i%l%s%9!K(B Nihil novum sub solem