OK. -levelsof- certainly sorts (although it has no
problem with strings).
Nick
[email protected]
Dedman, Dan
> Thanks all - I eventually worked out the issue evaluating vs.
> copying macros, but I am still struggling with the double and
> single quotes (it's a been a while...)
> I believe -forval-, -levelsof- and -valuesof- don't help me,
> either because they sort the values, or they require a
> numeric variable. I need the values in a pre-specified order.
Nick Cox
> That said, what you want is already provided by either
> -levelsof- in official Stata or the -valuesof- just announced
> by Ben Jann.
*
* 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/