On Thu 11-Jan-07 12:55pm -0600, Arun Easi wrote: > On Wed, 10 Jan 2007, Bill McCarthy wrote:
>> On Tue 9-Jan-07 4:12pm -0600, Arun Easi wrote: >>> Lines with same 3rd field are sorted lexicographically. >>> So, if you have MM/DD/YYYY format, that should be good. If >>> you have DD/MM/YYYY, it cannot be (Try adding 31/11/1996 >>> and 01/12/1996). >> Is this documented behavior? It certainly isn't mentioned >> in the brief docs that come with the GnuWin32 version. Do >> you have a URL that documents this? > http://docs.hp.com/en/B9106-90007/sort.1.html > Search for "final key" Thanks for that HP-UX documentation. The method appears similar to what is used in GnuWin32 sort. There is a significant difference though - there doesn't appear to be a way to shut off that "final key" approach. In GnuWin32 sort, there are two ways - specifying a stable sort (-s) or specifying unique keys (-u). Otherwise, the docs imply that they behave quite similarly. -- Best regards, Bill