The order statement sorts your data for you,
producing a total order of your output data.The syntax of order is similar to
group. You indicate a key or set of keys by which you wish to order your data
input2 =
load ‘daily’ as (exchanges, stocks);
grpds = order input2 by exchanges;