Frank E Harrell Jr wrote: >>sort(c(3,1,NA)) > > [1] 1 3 > > Shouldn't NAs be retained by default? help(sort) sort(c(3,1,NA),na.last=TRUE) Cheers Jason -- Indigo Industrial Controls Ltd. 64-21-343-545 jasont at indigoindustrial.co.nz