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   "" <[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:

*   For searches and help try:

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