Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Strange behavior of Sort

  • To: mathgroup at
  • Subject: [mg12970] Re: [mg12941] Strange behavior of Sort
  • From: BobHanlon at
  • Date: Sun, 28 Jun 1998 02:51:57 -0400
  • Sender: owner-wri-mathgroup at


While the list is numeric, it is not composed of numbers. Provide the
sort criteria that you want:

Sort[li, N[#1] < N[#2] & ]

Bob Hanlon

In a message dated 6/24/98 7:52:22 AM, edneuman at wrote:

>In Mathematica 3.0:
>li={1/Sqrt[2], 1, -Sqrt[2]};
>{1, 1/Sqrt[2], -Sqrt[2]}
>Sort doesn't work properly on this list.

  • Prev by Date: Re: Find Max of "Concave" List
  • Next by Date: Acceleration of NDSolve
  • Previous by thread: Re: Strange behavior of Sort
  • Next by thread: RE: Strange behavior of Sort