Sort problem
- To: mathgroup at smc.vnet.net
- Subject: [mg81678] Sort problem
- From: Donald DuBois <donabc at comcast.net>
- Date: Mon, 1 Oct 2007 04:49:55 -0400 (EDT)
Hello, This Sort works In[32]:= Sort[{r, a, x}] Out[32]= {a, r, x} but this one doesn't: In[33]:= Sort[{{r, 2}, {a, 3}, {x, 4}}, #1[[1]] < #2[[1]] &] Out[33]= {{r, 2}, {a, 3}, {x, 4}} What am I doing wrong? Don
- Follow-Ups:
- Re: Sort problem
- From: Syd Geraghty <sydgeraghty@mac.com>
- Re: Sort problem
- From: Adriano Pascoletti <adriano.pascoletti@dimi.uniud.it>
- Re: Sort problem