Hello, Thierry Thank you for the fast reply
actually my php script is not correct, the correct logic is R script, by writing this peace of code in php I tried to do the same logic that R script does. But this php programm algorirm probably is not correct so results are incorrect also. I am trying to understand how the order method in R language works, and then I'd like to do the same in some other language. ONKELINX, Thierry wrote: > > > You're sorting characters in the PHP script instead of numbers! > > sort(as.character(o)) in R will yield the same results as you PHP script > does. > > Thierry > > ------------------------------------------------------------------------ > ---- > ir. Thierry Onkelinx > Instituut voor natuur- en bosonderzoek / Research Institute for Nature > and Forest > Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, > methodology and quality assurance > Gaverstraat 4 > 9500 Geraardsbergen > Belgium > tel. + 32 54/436 185 > [EMAIL PROTECTED] > www.inbo.be > > Do not put your faith in what statistics say until you have carefully > considered what they do not say. ~William W. Watt > A statistical analysis, properly conducted, is a delicate dissection of > uncertainties, a surgery of suppositions. ~M.J.Moroney > -- View this message in context: http://www.nabble.com/Reimplement-order-somehow-tf4561576.html#a13018599 Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.