Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: sort a list


From   Tom Trikalinos <[email protected]>
To   [email protected]
Subject   Re: st: sort a list
Date   Wed, 18 Jan 2006 19:01:49 +0200

sort colour id
by colour:  list id names age




On Jan 18, 2006, at 6:42 PM, Lia Orfei wrote:

Dear all,
is there anybody who knows how to list variables that are sorted by a variable of my choice?
In practice, I have to do something like this (pure example):

bysort colour: list id names age

and I want to resulting list to be sorted by id say, so within each colour category, I want to sort again id numbers.

Any ideas?

Cheers

Lia

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

*
* 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/


Tom Trikalinos, MD
[email protected]

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index