--- scripts/statistics/base/quantile.m 2014-08-07 03:57:55.000000000 +1000 +++ foo.m 2015-07-01 22:57:41.921463275 +1000 @@ -331,7 +331,7 @@ ## Save length and set shape of samples. ## FIXME: does sort guarantee that NaN's come at the end? - x = sort (x); + x = sort (x,1); m = sum (! isnan (x)); [xr, xc] = size (x);