[Gretl-devel] Feature request for sorting of variables

Allin Cottrell cottrell at wfu.edu
Wed Oct 3 15:17:52 EDT 2007


On Wed, 3 Oct 2007, andreas.rosenblad at ltv.se wrote:

> I would appreciate a gretl command where the values of all 
> variables in a data set is sorted in ascending or descending 
> order by one of the variables, and one then can save the data 
> set with the new sorted ordering.

OK, you now have an additional option under the recently-added 
"dataset" command.  You can say

  dataset sortby <varname>

or

  dataset dsortby <varname>

to use descending order.  There's a corresponding new GUI menu 
item /Data/Sort data...

Allin.

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC


More information about the Gretl-devel mailing list