Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: minor complaint

From   Jeph Herrin <>
Subject   st: minor complaint
Date   Sun, 18 Jul 2010 14:35:22 -0400

Is there an obvious reason why the list directives
for locals include a -sort- for text but not a -sort-
for numbers?

 local mylist 0.5 2.5 12
 local mylist : list sort mylist
 macro list _mylist

Many tasks involve sorting lists, it would be a lot
easier if I did not always need to write a bubble sort.

Or is there another way to easily sort a numeric list
stored in macro?


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index