In the factorsort.ado that I just sent to the list, I had the
lines
if `r1' == 1 {
local sorted 0
}
It should have been
if `r1' == 1 {
local sorted 1
}
But, the code works fine both ways (just a bit slower with the
first). And indeed, that whole piece of code could be omitted,
in which case the loop would get executed one extra time (but by
then it would be a small loop anyway).
Ken Higbee [email protected]
StataCorp 1-800-STATAPC
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/