Re: Why Sort[{"AX", "!D", "EX"}] -> {"AX", "!D", "EX"} ?
- To: mathgroup at smc.vnet.net
- Subject: [mg75967] Re: Why Sort[{"AX", "!D", "EX"}] -> {"AX", "!D", "EX"} ?
- From: dimitris <dimmechan at yahoo.com>
- Date: Mon, 14 May 2007 03:38:53 -0400 (EDT)
- References: <f26nv5$4cl$1@smc.vnet.net>
In fact ordering in Mathematica can be sometimes a puzzle! See for example here a thread that began by a similar question of mine. http://groups.google.gr/group/comp.soft-sys.math.mathematica/browse_thread/= thread/a6e6e45f3992253c/dab09c7198d1c81b?hl=el#dab09c7198d1c81b Dimitris =CF/=C7 Philipp =DD=E3=F1=E1=F8=E5: > Would anybody explain to me the Mathematica (5.2) canonical order. > Specifically, why > > In[]:= Sort[{"AX", "!D", "EX"}] > Out[]= {"AX", "!D", "EX"} > > while, > > In[]:= Sort[{"A", "!", "E"}] > Out[]= {"!", "A", "E"} > > Is this a bug??? > > Cheers, > > Philipp.