|
[Date Index]
[Thread Index]
[Author Index]
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
Prev by Date:
using Save/Get with a function definition
Next by Date:
StatusArea
Previous by thread:
Re: using Save/Get with a function definition
Next by thread:
Re: Sort problem
|