[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
[no subject]
For example,
a1 a2 key1 key2
2 1 4 2
3 4 6 4
7 5 8 1
You wanted if key1<key2 then a1<a2.
Then do -sortrows key1 key2- followed by -sortrows a1 a2-
Isn't this what you are trying to achieve?
a1 a2 key1 key2
1 2 2 4
3 4 4 6
5 7 1 8
If it is, I'm sorry to spoil all the fun!
BW,
S Mt-Isa
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |