[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Simple question about sorted datasets
> I want a program to be able to find out if the dataset in memory is
> sorted. If possible, I also want it to be able to find out what the sort
> variables are. But I don't want the dataset to get sorted in the process.
Look at -help macro-. The extended macro function -sortedby-
will give you what you want. For instance,
. sysuse auto
. local cursort : sortedby
. di "`cursort'"
Would show you that the auto dataset is sorted on the "foreign"
Ken Higbee firstname.lastname@example.org
* For searches and help try: