From bug-octave-request at bevo dot che dot wisc dot edu Fri Apr 27 12:08:29 2001 Subject: NaN-related bug in SORT From: Alois =?iso-8859-1?Q?Schl=F6gl?= To: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 27 Apr 2001 12:08:24 -0500 octave:6> sort([3,4,nan,3,4,nan]) ans = 3 4 NaN 3 4 NaN Sorry, I've no patch. But I'd suggest that NaN's should be sorted at one end of the array. IEEE754/854 would suggest to but NaN above +Inf. ;-) Alois ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------