Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Decsending sort with stable option


From   Dick Campbell <[email protected]>
To   "statalist-hsphsun2.harvard.edu" <[email protected]>
Subject   st: Decsending sort with stable option
Date   Mon, 05 Apr 2004 05:04:38 -0500

I need to sort a file and preserve the order of tied cases
within the sort key. I can do this with
sort x, stable,
but I need to be in descending order. Gsort
will do this, but does not have the stable option. Can
anyone suggest how to do this?

Richard T. Campbell
Professor of Sociology
University of Illinois at Chicago

Address and other information at:
http://www.uic.edu/~dcamp

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