On Mon, 5 Apr 2010, Allin Cottrell wrote:
On Mon, 5 Apr 2010, Leandro Zipitria wrote:
> What I've done is: dataset sortby Supermarket &&
Year && Month
> && Product As I have not found it in the User Guide, I think
> it could recursively sort the dataset in that specific order
> (first by Supermarket, then by Year, etc.).
No, I'm afraid you must have just "got lucky". The "dataset
sortby" command takes just one series argument, there's no
provision for a hierarchical sort. It might be a good idea to
extend this command to take a list argument.
That facility (a list argument for "dataset sortby") is now in CVS
and the gretl snapshots. At present it's only available in script
mode, right now the GUI supports only a single sort key.
Allin Cottrell