Re: Re: Sorting Strings: How and Why so f$&!ing hard?

*To*: mathgroup at smc.vnet.net*Subject*: [mg60851] Re: [mg60803] Re: Sorting Strings: How and Why so f$&!ing hard?*From*: <bsyehuda at gmail.com>*Date*: Fri, 30 Sep 2005 03:57:23 -0400 (EDT)*References*: <200509290941.FAA01042@smc.vnet.net>*Reply-to*: bsyehuda at gmail.com*Sender*: owner-wri-mathgroup at wolfram.com

1. The error is obvious, I'm glad you found it 2. You also should expect that if part of the elements were sorted correctly, it is your fault. 3. And a language such as *f$&!ing* is also not appropriate (I'm defending Mathematica here :) regards yehuda On 9/29/05, Michael A. Gilchrist <mikeg at utk.edu> wrote: > > Nevermind, I see the problem. Sorry about wasting everyone's time > > Mike > > > ---------- Forwarded message ---------- > Subject: [mg60851] [mg60803] Sorting Strings: How and Why so f$&!ing hard? > > Hi, > > I'm trying to sort the following list. I eventually resorted to doing it > by > hand but would like to know why Mathematica's sort won't do it. > > In[1]= Sort[{"AG17.TXT", "BM14.TXT", "CC03.TXT", "GP21.TXT", "IG06.TXT", > "SDR19.TXT, AG18.TXT", "CA09.TXT", "CC04.TXT", "GP22.TXT", "PK07.TXT", > "SDR20.TXT, BM13.TXT", "CA10.TXT", "CD15.TXT", "IG05.TXT", "PK08.TXT"}] > > Out[1]= {"AG17.TXT", "BM14.TXT", "CA09.TXT", "CA10.TXT", "CC03.TXT", > "CC04.TXT", "CD15.TXT", "GP21.TXT", "GP22.TXT", "IG05.TXT", "IG06.TXT", > "PK07.TXT", "PK08.TXT", "SDR19.TXT, AG18.TXT", "SDR20.TXT, BM13.TXT"} > > > > Should this really be so hard? > > > Mike > >

**References**:**Re: Sorting Strings: How and Why so f$&!ing hard?***From:*"Michael A. Gilchrist" <mikeg@utk.edu>